From 307e0a17432392563a3ea4c092865084ad18ff4c Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Sun, 27 Dec 2020 19:25:27 +0100 Subject: [PATCH] Fix --- scripts/backup | 2 +- scripts/restore | 5 +++-- scripts/upgrade | 1 + 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/scripts/backup b/scripts/backup index 65067e1..461b331 100755 --- a/scripts/backup +++ b/scripts/backup @@ -38,7 +38,7 @@ ynh_backup --src_path="$final_path" # BACKUP MEDIA FOLDER #================================================= -ynh_backup --src_path="/home/yunohost.$app" --is_big +ynh_backup --src_path="/home/yunohost.app/$app" --is_big #================================================= # BACKUP THE NGINX CONFIGURATION diff --git a/scripts/restore b/scripts/restore index 38c3b3e..204b54d 100755 --- a/scripts/restore +++ b/scripts/restore @@ -28,6 +28,7 @@ final_path=$(ynh_app_setting_get --app=$app --key=final_path) db_name=$(ynh_app_setting_get --app=$app --key=db_name) db_user=$db_name phpversion=$(ynh_app_setting_get --app=$app --key=phpversion) +public_path=$(ynh_app_setting_get --app=$app --key=public_path) #================================================= # CHECK IF THE APP CAN BE RESTORED @@ -75,7 +76,7 @@ ynh_system_user_create --username=$app ynh_script_progression --message="Restoring Lychee data..." # Use --not_mandatory for the data directory, because if the backup has been made with BACKUP_CORE_ONLY, there's no data into the backup. -ynh_restore_file --origin_path="/home/yunohost.$app" --not_mandatory +ynh_restore_file --origin_path="/home/yunohost.app/$app" --not_mandatory #================================================= # RESTORE USER RIGHTS @@ -94,7 +95,7 @@ ynh_script_progression --message="Restoring PHP-FPM configuration..." ynh_restore_file --origin_path="/etc/php/$phpversion/fpm/pool.d/$app.conf" # Recreate a dedicated PHP-FPM config -ynh_add_fpm_config --usage=low --footprint=low --package="$extra_php_dependencies" +ynh_add_fpm_config --package="$extra_php_dependencies" #================================================= # RESTORE THE MYSQL DATABASE diff --git a/scripts/upgrade b/scripts/upgrade index 9474fb5..449b17a 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -22,6 +22,7 @@ is_public=$(ynh_app_setting_get --app=$app --key=is_public) final_path=$(ynh_app_setting_get --app=$app --key=final_path) db_name=$(ynh_app_setting_get --app=$app --key=db_name) phpversion=$(ynh_app_setting_get --app=$app --key=phpversion) +public_path=$(ynh_app_setting_get --app=$app --key=public_path) #================================================= # CHECK VERSION