-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathrun.sh
executable file
·31 lines (31 loc) · 907 Bytes
/
run.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/bash
case "$(uname -s)" in
Darwin)
echo '--------Detected BS Mac OS X-----------'
cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
currentDir=$(
cd $(dirname "$0")
pwd
)
$currentDir/applications/elasticsearch/bin/elasticsearch & osascript <<END
tell application "Terminal"
do script "$currentDir/applications/kibana/bin/kibana"
end tell
END
;;
Linux)
echo '--------Detected Linux-----------'
cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
currentDir=$(
cd $(dirname "$0")
pwd
)
$currentDir/applications/elasticsearch/bin/elasticsearch & xterm -e $currentDir/applications/kibana-linux/bin/kibana
echo 'Linux'
;;
CYGWIN*|MINGW32*|MSYS*)
echo 'MS Windows'
;;
esac