Browse Source

fix: Update

oneinstack 1 year ago
parent
commit
8a88d5156d
2 changed files with 6 additions and 2 deletions
  1. 4 0
      include/mphp.sh
  2. 2 2
      install.sh

+ 4 - 0
include/mphp.sh

@@ -60,6 +60,10 @@ Install_MPHP() {
           . include/php-8.1.sh
           Install_PHP81 2>&1 | tee -a ${oneinstack_dir}/install.log
           ;;
+        82)
+          . include/php-8.2.sh
+          Install_PHP82 2>&1 | tee -a ${oneinstack_dir}/install.log
+          ;;
       esac
       if [ -e "${php_install_dir}/sbin/php-fpm" ]; then
         systemctl stop php-fpm

+ 2 - 2
install.sh

@@ -50,7 +50,7 @@ Show_Help() {
   --apache_mode_option [1-2]  Apache2.4 mode, 1(default): php-fpm, 2: mod_php
   --apache_mpm_option [1-3]   Apache2.4 MPM, 1(default): event, 2: prefork, 3: worker
   --php_option [1-12]         Install PHP version
-  --mphp_ver [53~81]          Install another PHP version (PATH: ${php_install_dir}\${mphp_ver})
+  --mphp_ver [53~82]          Install another PHP version (PATH: ${php_install_dir}\${mphp_ver})
   --mphp_addons               Only install another PHP addons
   --phpcache_option [1-4]     Install PHP opcode cache, default: 1 opcache
   --php_extensions [ext name] Install PHP extensions, include zendguardloader,ioncube,
@@ -110,7 +110,7 @@ while :; do
       ;;
     --mphp_ver)
       mphp_ver=$2; mphp_flag=y; shift 2
-      [[ ! "${mphp_ver}" =~ ^5[3-6]$|^7[0-4]$|^8[0-1]$ ]] && { echo "${CWARNING}mphp_ver input error! Please only input number 53~81${CEND}"; exit 1; }
+      [[ ! "${mphp_ver}" =~ ^5[3-6]$|^7[0-4]$|^8[0-2]$ ]] && { echo "${CWARNING}mphp_ver input error! Please only input number 53~82${CEND}"; exit 1; }
       ;;
     --mphp_addons)
       mphp_addons_flag=y; shift 1