X-Git-Url: https://git.cyclocoop.org/?a=blobdiff_plain;f=etc%2Fsv%2Fphp5-fpm%2Fconfigure.sh;h=be0c15b5c9efc7f932dc120a71e2f94ff4e42f01;hb=ba91d2c88ddfbf48c2d251b77f63b56996c64071;hp=d349e1fa0e05526645dff2b9bd403ecf35ffa8b3;hpb=b27661cf8e40872543f86a00922d18573ef83612;p=lhc%2Fateliers.git diff --git a/etc/sv/php5-fpm/configure.sh b/etc/sv/php5-fpm/configure.sh index d349e1f..be0c15b 100644 --- a/etc/sv/php5-fpm/configure.sh +++ b/etc/sv/php5-fpm/configure.sh @@ -1,4 +1,4 @@ -rule apt_get_install php5-fpm php-apc +rule apt_get_install php5-fpm php-apc php5-mysql php5-gd rule insserv_remove php5-fpm rule www_configure @@ -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 \