From bfb55cd69206f2b25ed3e88e51d4a3c0f0a5de3e Mon Sep 17 00:00:00 2001 From: gingerman <33883642+mhardy85@users.noreply.github.com> Date: Tue, 19 Mar 2019 15:39:38 -0700 Subject: [PATCH] Updating DB file name for backups --- update.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/update.sh b/update.sh index e9fa207..eb96d1c 100644 --- a/update.sh +++ b/update.sh @@ -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]}"