mirror of
https://github.com/YunoHost-Apps/nextcloud_ynh.git
synced 2024-09-03 19:55:57 +02:00
Add new helper for fpm config
This commit is contained in:
parent
6a26ae3593
commit
7eed69c822
1 changed files with 2 additions and 9 deletions
|
@ -86,14 +86,7 @@ fi
|
||||||
sudo cp ../conf/nginx.conf "$nginx_conf"
|
sudo cp ../conf/nginx.conf "$nginx_conf"
|
||||||
|
|
||||||
# Copy and set php-fpm configuration
|
# Copy and set php-fpm configuration
|
||||||
phpfpm_conf="/etc/php5/fpm/pool.d/${app}.conf"
|
ynh_add_fpm_config
|
||||||
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
|
|
||||||
|
|
||||||
# occ helper for the current installation
|
# occ helper for the current installation
|
||||||
_exec_occ() {
|
_exec_occ() {
|
||||||
|
@ -188,4 +181,4 @@ sudo chmod 644 "$cron_path"
|
||||||
_exec_occ background:cron
|
_exec_occ background:cron
|
||||||
|
|
||||||
# Setup log rotation
|
# Setup log rotation
|
||||||
ynh_use_logrotate "/home/yunohost.app/nextcloud/data/nextcloud.log"
|
ynh_use_logrotate "/home/yunohost.app/nextcloud/data/nextcloud.log"
|
||||||
|
|
Loading…
Add table
Reference in a new issue