mirror of
https://github.com/YunoHost-Apps/piwigo_ynh.git
synced 2024-09-03 20:06:03 +02:00
commit
d15a3a80c1
1 changed files with 9 additions and 0 deletions
|
@ -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
|
||||
#=================================================
|
||||
|
|
Loading…
Reference in a new issue