Skip to content

Commit 3ca3f43

Browse files
committed
Allow creating custom profiles that still work with PHP versions
1 parent e3681f4 commit 3ca3f43

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

func/domain.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ prepare_web_backend() {
9090
pool=$(find -L /etc/php/ -name "$domain.conf" -exec dirname {} \;)
9191
# Check if multiple-PHP installed
9292
regex="socket-(\d+)_(\d+)"
93-
if [[ $backend_template =~ ^PHP-([0-9])\_([0-9])$ ]]; then
93+
if [[ $backend_template =~ ^.*PHP-([0-9])\_([0-9])$ ]]; then
9494
backend_version="${BASH_REMATCH[1]}.${BASH_REMATCH[2]}"
9595
pool=$(find -L /etc/php/$backend_version -type d \( -name "pool.d" -o -name "*fpm.d" \))
9696
else

0 commit comments

Comments
 (0)