From 0223642e98581685e1a09097869a2e7c5c84328f Mon Sep 17 00:00:00 2001 From: Rafi59 Date: Sun, 2 Jul 2017 13:45:14 +0200 Subject: [PATCH] [fix] Fpm_config --- scripts/upgrade | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index 22c169f..68700d3 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -119,14 +119,7 @@ fi sudo cp ../conf/nginx.conf "$nginx_conf" # Copy and set php-fpm configuration -phpfpm_conf="/etc/php5/fpm/pool.d/${app}.conf" -sed -i "s@#USER#@${app}@g" ../conf/php-fpm.conf -sed -i "s@#GROUP#@${app}@g" ../conf/php-fpm.conf -sed -i "s@#POOLNAME#@${app}@g" ../conf/php-fpm.conf -sed -i "s@#DESTDIR#@${DESTDIR}/@g" ../conf/php-fpm.conf -sudo cp ../conf/php-fpm.conf "$phpfpm_conf" -sudo chown root: $phpfpm_conf -sudo chmod 644 $phpfpm_conf +ynh_add_fpm_config # Set system group in hooks sed -i "s@#GROUP#@${app}@g" ../hooks/post_user_create