amitn322 / blackesk

BLACK ESK SIEM is a SIEM platform built with Elasticsearch, Syslog-Ng and Kibana
29 stars 12 forks source link

install sh error. #5

Closed owarz closed 4 years ago

owarz commented 4 years ago

install.sh: 70: Syntax error: "(" unexpected

os:ubuntu serv 20

amitn322 commented 4 years ago

can you put this in a file test.sh and run sh test.sh ? Let me know what output you get. I will try to run on an ubuntu server tonight.

#!/bin/bash
function testFunction()
{
  echo "This is test function" 
}

testFunction
owarz commented 4 years ago

hello,

test.sh: 2: test.sh: Syntax error: "(" unexpected

amitn322 commented 4 years ago

Can you please run the installer script as below :

bash install.sh

That should fix it. Apparently sh doesn't interpret the function.

owarz commented 4 years ago

thanks, i haven't tried this. I apologize for bothering you with such a simple thing.

amitn322 commented 4 years ago

No problem, Just didn't have an ubuntu machine to test.