mirror of
https://github.com/Unimatrix0/update_ombi.git
synced 2025-07-05 12:36:22 -07:00
Back up Ombi.db
This commit is contained in:
parent
bb6c2ae246
commit
93600f0086
1 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue