From f27d7a8a023de1269c8e6e2a2a08d2014da5bbae Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Wed, 10 Nov 2021 08:35:00 +0100 Subject: [PATCH] Update install --- scripts/install | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/scripts/install b/scripts/install index 04dbd92..f19de20 100644 --- a/scripts/install +++ b/scripts/install @@ -86,6 +86,22 @@ db_user=$db_name ynh_app_setting_set --app=$app --key=db_name --value=$db_name ynh_mysql_setup_db --db_user=$db_user --db_name=$db_name +#================================================= +# 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) + #=============================================== # ADD A CONFIGURATION #=============================================== @@ -115,22 +131,6 @@ newaliases chown root:root /etc/cron.d/$app chmod 644 /etc/cron.d/$app -#================================================= -# 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 #=================================================