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

Merge pull request #77 from YunoHost-Apps/testing

Fix failing backup
This commit is contained in:
yalh76 2021-08-05 21:35:54 +02:00 committed by GitHub
commit 072e5be1ba
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -34,6 +34,15 @@ ynh_script_progression --message="Checking version..."
upgrade_type=$(ynh_check_app_version_changed)
#=================================================
# FIX MISSING APP SETTING THAT BREAKS BACKUP
#=================================================
# If datapath doesn't exist, create it
if [ -z "$datapath" ]; then
datapath=/home/yunohost.app/$app
ynh_app_setting_set --app=$app --key=datapath --value=$datapath
fi
#=================================================
# BACKUP BEFORE UPGRADE THEN ACTIVE TRAP
#=================================================