From 52a01c56fbc0b4e510014519b3ea32549a1a82ce Mon Sep 17 00:00:00 2001 From: Rafi59 Date: Sun, 2 Jul 2017 13:52:36 +0200 Subject: [PATCH] [fix] Fpm_config --- scripts/install | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/scripts/install b/scripts/install index a0a09de..5cc4140 100755 --- a/scripts/install +++ b/scripts/install @@ -86,6 +86,14 @@ 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 # occ helper for the current installation