mirror of https://gitee.com/bigwinds/arangodb
fix startLocalCluster for darwin (#3641)
This commit is contained in:
parent
b035c041b9
commit
89384dd767
|
@ -1,7 +1,15 @@
|
|||
#!/bin/bash
|
||||
params=("$@")
|
||||
|
||||
lib="$(dirname $(readlink -f ${BASH_SOURCE[0]}))/cluster-run-common.sh"
|
||||
case $OSTYPE in
|
||||
darwin*)
|
||||
lib="$PWD/scripts/cluster-run-common.sh"
|
||||
;;
|
||||
*)
|
||||
lib="$(dirname $(readlink -f ${BASH_SOURCE[0]}))/cluster-run-common.sh"
|
||||
;;
|
||||
esac
|
||||
|
||||
if [[ -f "$lib" ]]; then
|
||||
. "$lib"
|
||||
else
|
||||
|
|
|
@ -11,8 +11,15 @@ else
|
|||
#if we want to restart we should probably store the parameters line wise
|
||||
fi
|
||||
|
||||
case $OSTYPE in
|
||||
darwin*)
|
||||
lib="$PWD/scripts/cluster-run-common.sh"
|
||||
;;
|
||||
*)
|
||||
lib="$(dirname $(readlink -f ${BASH_SOURCE[0]}))/cluster-run-common.sh"
|
||||
;;
|
||||
esac
|
||||
|
||||
lib="$(dirname $(readlink -f ${BASH_SOURCE[0]}))/cluster-run-common.sh"
|
||||
if [[ -f "$lib" ]]; then
|
||||
. "$lib"
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue