mirror of
https://github.com/YunoHost-Apps/rainloop_ynh.git
synced 2024-09-03 20:16:18 +02:00
Update upgrade
This commit is contained in:
parent
9aa2a5d873
commit
f368e29c65
1 changed files with 7 additions and 1 deletions
|
@ -3,7 +3,13 @@
|
|||
rainloop_version='1.10.5.192'
|
||||
|
||||
# Backup the current version of the app, restore it if the upgrade fails
|
||||
sudo yunohost backup delete $app-before-upgrade
|
||||
# Check if old backup exists
|
||||
if sudo yunohost backup list | grep -q $app-before-upgrade > /dev/null 2>&1;
|
||||
then
|
||||
sudo yunohost backup delete $app-before-upgrade
|
||||
else
|
||||
echo "no old backup to delete"
|
||||
fi
|
||||
sudo yunohost backup create --ignore-hooks --apps $app --name $app-before-upgrade --quiet
|
||||
EXIT_PROPERLY () {
|
||||
trap '' EXIT
|
||||
|
|
Loading…
Reference in a new issue