Jelajahi Sumber

Add support for PHP 7.4 to Multi-PHP migration script

Added PHP 7.4 version detection
Kristan Kenney 6 tahun lalu
induk
melakukan
7469b846e0
1 mengubah file dengan 3 tambahan dan 1 penghapusan
  1. 3 1
      install/upgrade/manual/migrate-190718-multiphp.sh

+ 3 - 1
install/upgrade/manual/migrate-190718-multiphp.sh

@@ -17,7 +17,7 @@ source $HESTIA/conf/hestia.conf
 #   Change Hestia WEB_BACKEND from null to php-fpm
 #   Create backend templates ex: PHP-7_3, PHP-5_6 (in $HESTIA/data/templates/web/php-fpm/)
 #   v-update-web-templates
-#   Loop trough all web domains
+#   Loop through all web domains
 #   If official multiphp tpl is used ex: PHP-72, then change backend tpl and set app web template to default
 #       ( old default.tpl backend maps to PHP-7_3 )
 #   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
                 backend_tpl="PHP-7_2"
             elif [ "$domain_tpl" = "PHP-73" ] || [ "$domain_tpl" = "default" ] || [ -z "$domain_tpl" ]; then
                 backend_tpl="PHP-7_3"
+            elif [ "$domain_tpl" = "PHP-74"]; then
+                backend_tpl="PHP-7_4"
             else
                 # Custom domain template used
                 echo "Domain is using a custom multiphp template (or non-multiphp one)"