diff --git a/update_ombi.sh b/update_ombi.sh index 06ac01a..fa3f048 100644 --- a/update_ombi.sh +++ b/update_ombi.sh @@ -52,7 +52,7 @@ declare -i verbosity=-1 ############################################ name="update_ombi" -version="1.2.00" +version="1.3.00" SECONDS=0 arch=$(uname -m) archshort=${arch:0:3} @@ -279,6 +279,10 @@ else .log 6 "Ombi is not active...installing update..." fi +declare -i timestamp=$(date +%s) +.log 6 "Backing up Ombi.db to Ombi.db.$timestamp" +cp ${installdir}Ombi.db ${installdir}Ombi.db.$timestamp + unzip-strip $file $installdir .log 6 "Update installed...setting ownership..." chown -R $user:$group $installdir