dont move files during stop/restart
This commit is contained in:
parent
4d37ef2821
commit
8d919e63db
1 changed files with 5 additions and 2 deletions
5
ctl
5
ctl
|
@ -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"
|
||||||
|
|
Loading…
Reference in a new issue