X-Git-Url: https://git.cyclocoop.org/?p=lhc%2Fateliers.git;a=blobdiff_plain;f=etc%2Fsv%2Fphp5-fpm%2Fconfigure.sh;h=44d548975d140bc673c8b5bca12381e3cbaf9cc1;hp=d349e1fa0e05526645dff2b9bd403ecf35ffa8b3;hb=45a4450db64a63643edd37d8e3aba8d57fe6a3ad;hpb=95b7f564247d2e3a2e7dc051bf3366f7542e48ef diff --git a/etc/sv/php5-fpm/configure.sh b/etc/sv/php5-fpm/configure.sh index d349e1f..44d5489 100644 --- a/etc/sv/php5-fpm/configure.sh +++ b/etc/sv/php5-fpm/configure.sh @@ -40,7 +40,7 @@ for pool in $(find "$tool"/etc/php5/fpm/pool.d/ \ -false ${@:+$(printf -- '-or -name %s.conf\n' "$@")} \ -printf '%f\n') do pool=${pool%\.conf} - rule adduser php5-"$pool" \ + rule adduser "$pool"__php5 \ --disabled-login \ --disabled-password \ --group \ @@ -71,7 +71,7 @@ for pool in $(find "$tool"/etc/php5/fpm/pool.d/ \ env[TEMP] = /tmp env[TMPDIR] = /tmp env[TMP] = /tmp - group = php5-$pool + group = ${pool}__php5 #listen = 127.0.0.1:9000 listen = /run/php5/fpm/$pool #listen.allowed_clients = 127.0.0.1 @@ -91,7 +91,7 @@ for pool in $(find "$tool"/etc/php5/fpm/pool.d/ \ rlimit_core = unlimited rlimit_files = 131072 slowlog = /home/www/log/php5/fpm/$pool/slow.log - user = php5-$pool + user = ${pool}__php5 $(cat "$tool"/etc/php5/fpm/pool.d/"$conf") EOF sudo install -m 664 -o php5 -g php5 \