diff --git a/bin/vhost-user-mod.sh b/bin/vhost-user-mod.sh index bb11102..1df321b 100755 --- a/bin/vhost-user-mod.sh +++ b/bin/vhost-user-mod.sh @@ -57,7 +57,7 @@ if /bin/grep -q "^$username:" /etc/passwd; then if [[ -n "$fpmmax" ]]; then vhost::set-phpVersion if [[ -f /etc/php/$phpVersion/fpm/pool.d/$username.conf ]]; then - sed -i "s|pm.max_children.*|pm.max_children = $fpmmax|g" /etc/php/8.1/fpm/pool.d/vr15com.conf + sed -i "s|pm.max_children.*|pm.max_children = $fpmmax|g" /etc/php/8.1/fpm/pool.d/$username.conf else echo "ERROR: PHP config for $username does not exist." exit 1