From 7a106f4cc3c26c4c237f2a2ffe8e941d9868421b Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Thu, 26 Nov 2020 22:50:04 +0100 Subject: [PATCH] Add missing PHP variable --- scripts/backup | 1 + scripts/restore | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/backup b/scripts/backup index 3f9ef00..2533458 100644 --- a/scripts/backup +++ b/scripts/backup @@ -24,6 +24,7 @@ app=$YNH_APP_INSTANCE_NAME final_path=$(ynh_app_setting_get --app=$app --key=final_path) domain=$(ynh_app_setting_get --app=$app --key=domain) +phpversion=$(ynh_app_setting_get --app=$app --key=phpversion) #================================================= # DECLARE DATA AND CONF FILES TO BACKUP diff --git a/scripts/restore b/scripts/restore index 15ed727..72db01d 100644 --- a/scripts/restore +++ b/scripts/restore @@ -78,7 +78,7 @@ ynh_restore_file --origin_path="/etc/php/$phpversion/fpm/pool.d/$app.conf" #================================================= # RELOAD NGINX AND PHP-FPM #================================================= -ynh_script_progression --message="Reloading nginx web server and php-fpm..." --weight=1 +ynh_script_progression --message="Reloading NGINX web server and PHP-FPM..." --weight=1 ynh_systemd_action --service_name=php$phpversion-fpm --action=reload ynh_systemd_action --service_name=nginx --action=reload