From d1b407a67e519c1925a6c7159dc48709d4bd1165 Mon Sep 17 00:00:00 2001 From: Akatsukiro Date: Mon, 19 Feb 2024 18:16:14 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=85=A8=E8=87=AA=E5=8A=A8=E5=AE=89?= =?UTF-8?q?=E8=A3=85=20=E6=8F=90=E7=A4=BA=E9=83=A8=E5=88=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- install.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/install.sh b/install.sh index 3de990f..9fe5696 100644 --- a/install.sh +++ b/install.sh @@ -108,6 +108,20 @@ install_base() { install_base pre_check +echo -e "${yellow}是否进行全自动安装?${plain}" +read -e -r -p "[Y/n]:" autoFlag +case $autoFlag in + [yY][eE][sS] | [yY]) + autoFlag="1" + ;; + [nN][oO] | [nN]) + autoFlag="0" + ;; + *) + autoFlag="1" + ;; +esac + install_php() { echo -e "${green}开始安装PHP${plain}" echo "默认安装php8.1"