Skip to content

Commit

Permalink
Updating DB file name for backups
Browse files Browse the repository at this point in the history
  • Loading branch information
mhardy85 authored and taniman committed Apr 3, 2019
1 parent bb052c0 commit bfb55cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ if [[ $continue == "y" ]] || [[ $continue == "Y" ]]; then
echo "$(tput setaf 2) === Replacing jar file === $(tput sgr0)"
cp ProfitTrailer.jar "${path[$i]}"
mkdir -p "$DIR"/updatescript/"$(date +%m%d_%H%M)"/"${name[$i]}"
cp "${path[$i]}"/data/ptdb.mv.db "$DIR"/updatescript/"$(date +%m%d_%H%M)"/"${name[$i]}"/ptdb.mv.db
cp "${path[$i]}"/data/ptdb.db "$DIR"/updatescript/"$(date +%m%d_%H%M)"/"${name[$i]}"/ptdb.db
echo
echo "$(tput setaf 2) === Restarting ${name[$i]} === $(tput sgr0)"
pm2 reload "${name[$i]}"
Expand Down

0 comments on commit bfb55cd

Please sign in to comment.