Skip to content

Commit d9f6cb1

Browse files
author
Kristan Kenney
authored
Merge pull request hestiacp#806 from rkkoszewski/feat/multiphp-multiprofile-version
Allow creating custom backend templates that still work with specific PHP versions
2 parents 1d558b1 + 3ca3f43 commit d9f6cb1

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)