replace test username with variable
This commit is contained in:
parent
6a53ec1bb1
commit
072cfaba90
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user