web-add.sh - Ensure the FPM pools uses the www-XXX user

This commit is contained in:
Ludovic Poujol 2019-04-02 15:15:51 +02:00
parent e0f8d6ade1
commit d00ecea964

View file

@ -403,7 +403,7 @@ create_www_account() {
phpfpm_socket_path="/home/${in_login}/php-fpm${php_version}.sock"
cat <<EOT >/var/lib/lxc/php"${php_version}"/rootfs/${pool_path}/"${in_login}".conf
[${in_login}]
user = ${in_login}
user = www-${in_login}
group = ${in_login}
listen = ${phpfpm_socket_path}