dont move files during stop/restart
This commit is contained in:
parent
4d37ef2821
commit
8d919e63db
1 changed files with 5 additions and 2 deletions
7
ctl
7
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
|
||||||
mv "$BASE/config" "$DATA"
|
if [ "$1" == "stop" ] || [ "$1" == "restart" ]; then
|
||||||
#DATA="$BASE/config"
|
DATA="$BASE/config"
|
||||||
|
else
|
||||||
|
mv "$BASE/config" "$DATA"
|
||||||
|
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