1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/couchpotato_ynh.git synced 2024-09-03 18:16:22 +02:00

Fix upgrade

This commit is contained in:
yalh76 2020-06-24 02:59:53 +02:00
parent eeac9ff671
commit 4a750a207a

View file

@ -61,6 +61,12 @@ if [ -z "$final_path" ]; then
ynh_app_setting_set --app=$app --key=final_path --value=$final_path
fi
# If app_data_dir doesn't exist, create it
if [ -z "$app_data_dir" ]; then
app_data_dir=/home/yunohost.app/$app
ynh_app_setting_set --app=$app --key=app_data_dir --value=$app_data_dir
fi
#=================================================
# BACKUP BEFORE UPGRADE THEN ACTIVE TRAP
#=================================================