From 9a0d82727a26faf9951e85d7fd2e576547491059 Mon Sep 17 00:00:00 2001 From: yalh76 Date: Fri, 17 May 2019 22:37:10 +0200 Subject: [PATCH] php-fpm reorder --- scripts/install | 3 +-- scripts/restore | 1 + scripts/upgrade | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/install b/scripts/install index e936fd1..f1fd957 100644 --- a/scripts/install +++ b/scripts/install @@ -116,8 +116,8 @@ mkdir -p "$final_path" #================================================= ynh_print_info --message="Installing PHP 7.2..." - ynh_install_php --phpversion="7.2" --package="$extra_pkg_dependencies" +ynh_systemd_action --service_name=php7.2-fpm --action=reload #================================================= # CREATE DRUSH ALIAS @@ -215,7 +215,6 @@ fi ynh_print_info --message="Reloading nginx web server..." ynh_systemd_action --service_name=nginx --action=reload -ynh_systemd_action --service_name=php7.2-fpm --action=reload #================================================= # END OF SCRIPT diff --git a/scripts/restore b/scripts/restore index b6d03b0..cd75cea 100644 --- a/scripts/restore +++ b/scripts/restore @@ -109,6 +109,7 @@ ynh_restore_file --origin_path="/etc/cron.d/$app" ynh_print_info --message="Reinstalling php..." ynh_install_php --phpversion="7.2" --package="$extra_pkg_dependencies" +ynh_systemd_action --service_name=php7.2-fpm --action=reload #================================================= # GENERIC FINALIZATION diff --git a/scripts/upgrade b/scripts/upgrade index 8e86244..ff0ea97 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -114,6 +114,7 @@ ynh_add_fpm_config --phpversion="7.2" ynh_print_info --message="Updating PHP..." ynh_install_php --phpversion="7.2" --package="$extra_pkg_dependencies" +ynh_systemd_action --service_name=php7.2-fpm --action=reload #================================================= # UPDATE COMPOSER