Skip to content

Commit

Permalink
moved json backup from location
Browse files Browse the repository at this point in the history
  • Loading branch information
SgtBatten authored and taniman committed Aug 1, 2018
1 parent 3020908 commit 5369c8f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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]}"
Expand Down Expand Up @@ -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]}"
Expand Down

0 comments on commit 5369c8f

Please sign in to comment.