moved json backup from location
This commit is contained in:
parent
3020908997
commit
5369c8fc0e
|
@ -228,7 +228,7 @@ if [[ ! $1 ]]; then
|
||||||
echo "$(tput setaf 2) === Replacing jar file === $(tput sgr0)"
|
echo "$(tput setaf 2) === Replacing jar file === $(tput sgr0)"
|
||||||
cp ProfitTrailer.jar "${path[$i]}"
|
cp ProfitTrailer.jar "${path[$i]}"
|
||||||
mkdir -p updatescript/"$(date +%m%d_%H%M)"/"${name[$i]}"
|
mkdir -p updatescript/"$(date +%m%d_%H%M)"/"${name[$i]}"
|
||||||
cp "${path[$i]}"/ProfitTrailerData.json updatescript/"$(date +%m%d_%H%M)"/"${name[$i]}"/ProfitTrailerData.json
|
cp "${path[$i]}"/data/ProfitTrailerData.json updatescript/"$(date +%m%d_%H%M)"/"${name[$i]}"/ProfitTrailerData.json
|
||||||
echo
|
echo
|
||||||
echo "$(tput setaf 2) === Restarting ${name[$i]} === $(tput sgr0)"
|
echo "$(tput setaf 2) === Restarting ${name[$i]} === $(tput sgr0)"
|
||||||
pm2 reload "${name[$i]}"
|
pm2 reload "${name[$i]}"
|
||||||
|
@ -287,7 +287,7 @@ if [ -n "${1}" ]; then
|
||||||
echo "$(tput setaf 2) === Replacing jar file === $(tput sgr0)"
|
echo "$(tput setaf 2) === Replacing jar file === $(tput sgr0)"
|
||||||
cp ProfitTrailer*.jar "${path[$i]}"/ProfitTrailer.jar
|
cp ProfitTrailer*.jar "${path[$i]}"/ProfitTrailer.jar
|
||||||
mkdir -p updatescript/"$(date +%m%d_%H%M)"/"${name[$i]}"
|
mkdir -p updatescript/"$(date +%m%d_%H%M)"/"${name[$i]}"
|
||||||
cp "${path[$i]}"/ProfitTrailerData.json updatescript/"$(date +%m%d_%H%M)"/"${name[$i]}"/ProfitTrailerData.json
|
cp "${path[$i]}"/data/ProfitTrailerData.json updatescript/"$(date +%m%d_%H%M)"/"${name[$i]}"/ProfitTrailerData.json
|
||||||
echo
|
echo
|
||||||
echo "$(tput setaf 2) === Restarting ${name[$i]} === $(tput sgr0)"
|
echo "$(tput setaf 2) === Restarting ${name[$i]} === $(tput sgr0)"
|
||||||
pm2 reload "${name[$i]}"
|
pm2 reload "${name[$i]}"
|
||||||
|
|
Loading…
Reference in New Issue