replace test username with variable

This commit is contained in:
Matthew Saunders Brown 2023-06-19 15:59:56 -07:00
parent 6a53ec1bb1
commit 072cfaba90

View File

@ -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