From 5369c8fc0e8c28cea328c43097be06fb83088637 Mon Sep 17 00:00:00 2001 From: SgtBatten Date: Wed, 1 Aug 2018 08:54:44 +1000 Subject: [PATCH] moved json backup from location --- update.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/update.sh b/update.sh index 960cd55..d3c5e04 100644 --- a/update.sh +++ b/update.sh @@ -228,7 +228,7 @@ if [[ ! $1 ]]; then echo "$(tput setaf 2) === Replacing jar file === $(tput sgr0)" cp ProfitTrailer.jar "${path[$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 "$(tput setaf 2) === Restarting ${name[$i]} === $(tput sgr0)" pm2 reload "${name[$i]}" @@ -287,7 +287,7 @@ if [ -n "${1}" ]; then echo "$(tput setaf 2) === Replacing jar file === $(tput sgr0)" cp ProfitTrailer*.jar "${path[$i]}"/ProfitTrailer.jar 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 "$(tput setaf 2) === Restarting ${name[$i]} === $(tput sgr0)" pm2 reload "${name[$i]}"