From 072cfaba90d8d186ada6d6b78fdeca8d8b315a74 Mon Sep 17 00:00:00 2001 From: Matthew Saunders Brown Date: Mon, 19 Jun 2023 15:59:56 -0700 Subject: [PATCH] replace test username with variable --- bin/vhost-user-mod.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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