dont move files during stop/restart

This commit is contained in:
j 2016-01-20 11:11:50 +05:30
parent 4d37ef2821
commit 8d919e63db
1 changed files with 5 additions and 2 deletions

7
ctl
View File

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