From 7c91e7863b73c933d80cf0a3656e682e78772514 Mon Sep 17 00:00:00 2001 From: oufmilo <44617467+oufmilo@users.noreply.github.com> Date: Fri, 25 Jun 2021 14:52:23 +0200 Subject: [PATCH] Update install --- scripts/install | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/scripts/install b/scripts/install index 26e6613..0e4e2d3 100644 --- a/scripts/install +++ b/scripts/install @@ -52,7 +52,6 @@ ynh_app_setting_set $app final_path $final_path #INSTALL DEPENDENCIES #================================================= ynh_script_progression --message="Installing dependencies..." --weight=15 -ynh_install_app_dependencies $extra_php_dependencies #install locale (nginx will restart at the end of the install) for i in $lang ; do @@ -131,10 +130,22 @@ cp -a ../conf/$app.cron /etc/cron.d/$app chown root:root /etc/cron.d/$app chmod 644 /etc/cron.d/$app -# Create a dedicated nginx config -ynh_script_progression --message="Configuring nginx web server..." --weight=2 +#================================================= +# NGINX CONFIGURATION +#================================================= + +ynh_script_progression --message="Configuring nginx web server..." --weight=1 ynh_add_nginx_config +#================================================= +# PHP-FPM CONFIGURATION +#================================================= +ynh_script_progression --message="Configuring PHP-FPM..." --weight=2 + +# Create a dedicated PHP-FPM config +ynh_add_fpm_config --package="$extra_php_dependencies" +phpversion=$(ynh_app_setting_get --app=$app --key=phpversion) + #================================================= # SETUP SSOWAT #=================================================