Skip to content

Commit 7469b84

Browse files
author
Kristan Kenney
committed
Add support for PHP 7.4 to Multi-PHP migration script
Added PHP 7.4 version detection
1 parent 9634334 commit 7469b84

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

install/upgrade/manual/migrate-190718-multiphp.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ source $HESTIA/conf/hestia.conf
1717
# Change Hestia WEB_BACKEND from null to php-fpm
1818
# Create backend templates ex: PHP-7_3, PHP-5_6 (in $HESTIA/data/templates/web/php-fpm/)
1919
# v-update-web-templates
20-
# Loop trough all web domains
20+
# Loop through all web domains
2121
# If official multiphp tpl is used ex: PHP-72, then change backend tpl and set app web template to default
2222
# ( old default.tpl backend maps to PHP-7_3 )
2323
# If not, parse php version from tpl file , fallback to latest version,
@@ -65,6 +65,8 @@ if [ "$num_php_versions" -gt 1 ] && [ -z "$WEB_BACKEND" ]; then
6565
backend_tpl="PHP-7_2"
6666
elif [ "$domain_tpl" = "PHP-73" ] || [ "$domain_tpl" = "default" ] || [ -z "$domain_tpl" ]; then
6767
backend_tpl="PHP-7_3"
68+
elif [ "$domain_tpl" = "PHP-74"]; then
69+
backend_tpl="PHP-7_4"
6870
else
6971
# Custom domain template used
7072
echo "Domain is using a custom multiphp template (or non-multiphp one)"

0 commit comments

Comments
 (0)