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

Don't backup data directory during the upgrade process

This commit is contained in:
Jimmy Monin 2017-12-21 10:37:05 +01:00
parent 46c7e7a6e3
commit 356d2ab6c3

View file

@ -87,6 +87,9 @@ is_public=$(ynh_app_setting_get "$app" is_public)
# Use prior backup and restore on error only if backup feature
# exists on installed instance
if [ -f "/etc/yunohost/apps/$app/scripts/backup" ] ; then
# Notify the backup process that it should not save the data directory
ynh_app_setting_set $app backup_core_only 1
ynh_backup_before_upgrade # Backup the current version of the app
ynh_clean_setup () {
ynh_restore_upgradebackup