From 6974a2d123e1ecf7e03f6a41cbb916266f613ecb Mon Sep 17 00:00:00 2001 From: Kay0u Date: Tue, 24 Mar 2020 15:30:50 +0100 Subject: [PATCH] Fix PHPVERSION --- conf/php-fpm.conf | 2 +- scripts/install | 2 +- scripts/remove | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/conf/php-fpm.conf b/conf/php-fpm.conf index 046bbd6..ab1a471 100644 --- a/conf/php-fpm.conf +++ b/conf/php-fpm.conf @@ -33,7 +33,7 @@ group = __USER__ ; (IPv6 and IPv4-mapped) on a specific port; ; '/path/to/unix/socket' - to listen on a unix socket. ; Note: This value is mandatory. -listen = /var/run/php/php7.3-fpm-__NAMETOCHANGE__.sock +listen = /var/run/php/php__PHPVERSION__-fpm-__NAMETOCHANGE__.sock ; Set listen(2) backlog. ; Default Value: 511 (-1 on FreeBSD and OpenBSD) diff --git a/scripts/install b/scripts/install index 7a2ce48..a66333b 100644 --- a/scripts/install +++ b/scripts/install @@ -109,7 +109,7 @@ ynh_system_user_create --username=$app ynh_script_progression --message="Configuring php-fpm..." --weight=1 # Create a dedicated php-fpm config -ynh_add_fpm_config --phpversion="7.3" +ynh_add_fpm_config --phpversion="$YNH_PHP_VERSION" #================================================= # SPECIFIC SETUP diff --git a/scripts/remove b/scripts/remove index 3cdc47f..105f20e 100644 --- a/scripts/remove +++ b/scripts/remove @@ -64,7 +64,7 @@ ynh_script_progression --message="Removing php-fpm configuration..." --weight=20 # Remove the dedicated php-fpm config ynh_remove_fpm_config -ynh_remove_php "7.3" +ynh_remove_php "$YNH_PHP_VERSION" #================================================= # SPECIFIC REMOVE