Skip to content

Commit

Permalink
Back up Ombi.db
Browse files Browse the repository at this point in the history
  • Loading branch information
Unimatrix0 committed Mar 28, 2018
1 parent bb6c2ae commit 93600f0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion update_ombi.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 93600f0

Please sign in to comment.