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:
parent
46c7e7a6e3
commit
356d2ab6c3
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue