From 861f904be3ff353ea455d22b40e1c35caa38928f Mon Sep 17 00:00:00 2001 From: gingerman <33883642+mhardy85@users.noreply.github.com> Date: Fri, 4 Jan 2019 22:41:43 -0400 Subject: [PATCH] Update to backup v2.2 DB --- update.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/update.sh b/update.sh index 2384c01..99dc292 100644 --- a/update.sh +++ b/update.sh @@ -1,7 +1,7 @@ #!/bin/bash ### Linux .jar Update Script for ProfitTrailer -### LAST UPDATED 09 August 2018 +### LAST UPDATED 04 January 2019 ### Place this script in the root folder where all your individual bot folders are and then execute it. ### For simplicity each ProfitTrailer.jar file should be nested exactly one subfolder. @@ -262,7 +262,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]}"/data/ProfitTrailerData.json updatescript/"$(date +%m%d_%H%M)"/"${name[$i]}"/ProfitTrailerData.json + cp "${path[$i]}"/data/ptdb.mv.db updatescript/"$(date +%m%d_%H%M)"/"${name[$i]}"/ptdb.mv.db echo echo "$(tput setaf 2) === Restarting ${name[$i]} === $(tput sgr0)" pm2 reload "${name[$i]}" @@ -321,7 +321,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]}"/data/ProfitTrailerData.json updatescript/"$(date +%m%d_%H%M)"/"${name[$i]}"/ProfitTrailerData.json + cp "${path[$i]}"/data/ptdb.mv.db updatescript/"$(date +%m%d_%H%M)"/"${name[$i]}"/ptdb.mv.db echo echo "$(tput setaf 2) === Restarting ${name[$i]} === $(tput sgr0)" pm2 reload "${name[$i]}"