From a539ddcd94728b453482dd6559c5c329af073aa2 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Fri, 24 Jul 2020 17:32:44 +0200 Subject: [PATCH] fix --- conf/php-fpm.conf | 5 +---- scripts/install | 11 +++++++++-- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/conf/php-fpm.conf b/conf/php-fpm.conf index 85b538b..39b40b9 100644 --- a/conf/php-fpm.conf +++ b/conf/php-fpm.conf @@ -3,9 +3,6 @@ ; pool name ('www' here) [__NAMETOCHANGE__] -open_basedir = none -date.timezone = "YHTZ" - ; Per pool prefix ; It only applies on the following directives: ; - 'slowlog' @@ -33,7 +30,7 @@ group = __USER__ ; specific port; ; '/path/to/unix/socket' - to listen on a unix socket. ; Note: This value is mandatory. -listen = /var/run/php-fpm-__NAMETOCHANGE__.sock +listen = /var/run/php7.0-fpm-__NAMETOCHANGE__.sock ; Set listen(2) backlog. A value of '-1' means unlimited. ; Default Value: 128 (-1 on FreeBSD and OpenBSD) diff --git a/scripts/install b/scripts/install index 35c53d8..992b1a8 100644 --- a/scripts/install +++ b/scripts/install @@ -118,7 +118,7 @@ ynh_system_user_create --username=$app ynh_script_progression --message="Configuring php-fpm..." --time --weight=1 # Create a dedicated php-fpm config -ynh_replace_string --match_string="YHTZ" --replace_string="$timezone" --target_file=../conf/php-fpm.conf +#ynh_replace_string --match_string="YHTZ" --replace_string="$timezone" --target_file=../conf/php-fpm.conf ynh_add_fpm_config @@ -197,5 +197,12 @@ fi #================================================= # RELOAD NGINX #================================================= +ynh_script_progression --message="Reloading nginx web server..." --time --weight=1 -service nginx reload +ynh_systemd_action --service_name=nginx --action=reload + +#================================================= +# END OF SCRIPT +#================================================= + +ynh_script_progression --message="Installation of $app completed" --time --last \ No newline at end of file