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

Fix restore on failed upgrade

This commit is contained in:
Jimmy Monin 2017-09-22 21:34:28 +02:00
parent 89eddb9e13
commit b927abb98b

View file

@ -89,7 +89,7 @@ is_public=$(ynh_app_setting_get "$app" is_public)
if [ -f "/etc/yunohost/apps/$app/scripts/backup" ] ; then if [ -f "/etc/yunohost/apps/$app/scripts/backup" ] ; then
ynh_backup_before_upgrade # Backup the current version of the app ynh_backup_before_upgrade # Backup the current version of the app
ynh_clean_setup () { ynh_clean_setup () {
ynh_backup_after_failed_upgrade ynh_restore_upgradebackup
} }
ynh_abort_if_errors # Stop script if an error is detected ynh_abort_if_errors # Stop script if an error is detected
fi fi