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
|
#!/bin/bash
|
||||||
params=("$@")
|
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
|
if [[ -f "$lib" ]]; then
|
||||||
. "$lib"
|
. "$lib"
|
||||||
else
|
else
|
||||||
|
|
|
@ -11,8 +11,15 @@ else
|
||||||
#if we want to restart we should probably store the parameters line wise
|
#if we want to restart we should probably store the parameters line wise
|
||||||
fi
|
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
|
if [[ -f "$lib" ]]; then
|
||||||
. "$lib"
|
. "$lib"
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue