From 93600f00869aec9f83859cf11d0be2bdaba66973 Mon Sep 17 00:00:00 2001 From: Avi Date: Tue, 27 Mar 2018 19:07:43 -0500 Subject: [PATCH] Back up Ombi.db --- update_ombi.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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