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 #76 from roukydesbois/patch-1

Fix failing backup
This commit is contained in:
yalh76 2021-08-05 00:35:45 +02:00 committed by GitHub
commit d15a3a80c1
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) 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 # BACKUP BEFORE UPGRADE THEN ACTIVE TRAP
#================================================= #=================================================