diff --git a/scripts/change_url b/scripts/change_url index dd445b0..b2be60e 100755 --- a/scripts/change_url +++ b/scripts/change_url @@ -33,7 +33,7 @@ final_path=$(ynh_app_setting_get --app=$app --key=final_path) # BACKUP BEFORE CHANGE URL THEN ACTIVE TRAP #================================================= -ynh_script_progression --message="Backing up the app before changing its URL (may take a while)..." --time --weight=1 +ynh_script_progression --message="Backing up the app before changing its URL (may take a while)..." --weight=1 # Backup the current version of the app ynh_backup_before_upgrade diff --git a/scripts/restore b/scripts/restore index 4e63ef7..e7faba4 100755 --- a/scripts/restore +++ b/scripts/restore @@ -10,10 +10,6 @@ path_url=$(ynh_app_setting_get --app=$app --key=path) final_path=$(ynh_app_setting_get --app=$app --key=final_path) phpversion=$(ynh_app_setting_get --app=$app --key=phpversion) -ynh_script_progression --message="Restoring the NGINX configuration..." --weight=1 -ynh_restore_file --origin_path="/etc/nginx/conf.d/$domain.d/$app.conf" -ynh_systemd_action --service_name=nginx --action=reload - ynh_script_progression --message="Recreating the dedicated system user..." ynh_system_user_create --username=$app --home_dir="$final_path" @@ -28,4 +24,8 @@ ynh_script_progression --message="Restoring the PHP-FPM configuration..." ynh_restore_file --origin_path="/etc/php/$phpversion/fpm/pool.d/$app.conf" ynh_systemd_action --service_name=php$phpversion-fpm --action=reload +ynh_script_progression --message="Restoring the NGINX configuration..." --weight=1 +ynh_restore_file --origin_path="/etc/nginx/conf.d/$domain.d/$app.conf" +ynh_systemd_action --service_name=nginx --action=reload + ynh_script_progression --message="Restoration completed for $app" --last