From 7eed69c82287b5fe2e1831e94d94dcd33891db11 Mon Sep 17 00:00:00 2001 From: Rafi59 Date: Fri, 30 Jun 2017 15:01:01 +0200 Subject: [PATCH] Add new helper for fpm config --- scripts/install | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/scripts/install b/scripts/install index bc56e53..a0a09de 100755 --- a/scripts/install +++ b/scripts/install @@ -86,14 +86,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 # occ helper for the current installation _exec_occ() { @@ -188,4 +181,4 @@ sudo chmod 644 "$cron_path" _exec_occ background:cron # Setup log rotation -ynh_use_logrotate "/home/yunohost.app/nextcloud/data/nextcloud.log" \ No newline at end of file +ynh_use_logrotate "/home/yunohost.app/nextcloud/data/nextcloud.log"