From 7077646d0baaccb9a95a7a5ce58e9193cfe564a6 Mon Sep 17 00:00:00 2001 From: yalh76 Date: Sat, 18 May 2019 05:34:13 +0200 Subject: [PATCH] Update install --- scripts/install | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/scripts/install b/scripts/install index ca0f6d6..d7cdc03 100644 --- a/scripts/install +++ b/scripts/install @@ -66,6 +66,12 @@ ynh_app_setting_set --app=$app --key=install_profil --value=$install_profil ynh_print_info --message="Installing dependencies..." ynh_install_app_dependencies $pkg_dependencies + +#================================================= +# INSTALL PHP +#================================================= +ynh_print_info --message="Installing PHP..." + ynh_install_php --phpversion="7.2" --package="$extra_pkg_dependencies" #================================================= @@ -156,14 +162,6 @@ cp ../conf/cron /etc/cron.d/$app ynh_replace_string --match_string="__FINALPATH__" --replace_string="$final_path" --target_file="/etc/cron.d/$app" ynh_replace_string --match_string="__APP__" --replace_string="$app" --target_file="/etc/cron.d/$app" -#================================================= -# PHP-FPM CONFIGURATION -#================================================= -ynh_print_info --message="Configuring php-fpm..." - -# Create a dedicated php-fpm config -ynh_add_fpm_config --phpversion="7.2" - #================================================= # STORE THE CONFIG FILE CHECKSUM #================================================= @@ -173,6 +171,14 @@ ynh_store_file_checksum --file="$final_path/$app/sites/default/settings.php" #================================================= # GENERIC FINALIZATION +#================================================= +# PHP-FPM CONFIGURATION +#================================================= +ynh_print_info --message="Configuring php-fpm..." + +# Create a dedicated php-fpm config +ynh_add_fpm_config --phpversion="7.2" + #================================================= # SECURE FILES AND DIRECTORIES #=================================================