From d734f59994d589acedcdc23acb37a5eb421fb4df Mon Sep 17 00:00:00 2001 From: allan Date: Sat, 1 Nov 2025 13:00:59 +0000 Subject: [PATCH] fixed php-fpm detection logic --- wordpressinstall | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wordpressinstall b/wordpressinstall index 946995c..2e38ee2 100755 --- a/wordpressinstall +++ b/wordpressinstall @@ -13,7 +13,7 @@ if [[ $(id -u) -ne 0 ]]; then echo "" && echo "Must be root or use sudo" && echo # # Get php-fpm version # -phpfpm=$(systemctl list-unit-files --type=service | awk '/php[0-9]+\.[0-9]+-fpm/ {sub(".service",""); print; exit}') +phpfpm=$(systemctl list-unit-files --type=service | awk '/php[0-9]+\.[0-9]+-fpm\.service/ {sub(".service","",$1); print $1; exit}') if [[ -z "$phpfpm" ]]; then printf "\nUnable to detect php-fpm version. Is PHP-FPM installed?\n\n" ; exit 1 ; fi #