dont move files during stop/restart

This commit is contained in:
j 2016-01-20 11:11:50 +05:30
parent 4d37ef2821
commit 8d919e63db

5
ctl
View file

@ -12,8 +12,11 @@ PLATFORM=`uname -m`
DATA="$BASE/data" DATA="$BASE/data"
if [ ! -e "$DATA" ] && [ -e "$BASE/config" ]; then if [ ! -e "$DATA" ] && [ -e "$BASE/config" ]; then
if [ "$1" == "stop" ] || [ "$1" == "restart" ]; then
DATA="$BASE/config"
else
mv "$BASE/config" "$DATA" mv "$BASE/config" "$DATA"
#DATA="$BASE/config" fi
else else
if [ ! -e "$BASE/data/release.json" ] && [ -e "$BASE/config/release.json" ]; then if [ ! -e "$BASE/data/release.json" ] && [ -e "$BASE/config/release.json" ]; then
mv "$BASE/config/release.json" "$BASE/data/release.json" mv "$BASE/config/release.json" "$BASE/data/release.json"