1
0
Fork 0
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:
polytan02 2017-02-21 21:23:47 +00:00 committed by GitHub
parent 9aa2a5d873
commit f368e29c65

View file

@ -3,7 +3,13 @@
rainloop_version='1.10.5.192' rainloop_version='1.10.5.192'
# Backup the current version of the app, restore it if the upgrade fails # Backup the current version of the app, restore it if the upgrade fails
# 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 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 sudo yunohost backup create --ignore-hooks --apps $app --name $app-before-upgrade --quiet
EXIT_PROPERLY () { EXIT_PROPERLY () {
trap '' EXIT trap '' EXIT