1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/rainloop_ynh.git synced 2024-09-03 20:16:18 +02:00

Merge pull request #19 from YunoHost-Apps/polytan02-patch-1

Update upgrade to avoid error
This commit is contained in:
Jeff 2017-02-21 22:35:58 +01:00 committed by GitHub
commit f57a8ab64c

View file

@ -3,7 +3,13 @@
rainloop_version='1.10.5.192'
# 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
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