From 3402ba7e8ef2844630f9fb11912b72e9bf25d2a1 Mon Sep 17 00:00:00 2001 From: Akatsukiro Date: Tue, 16 Jan 2024 14:59:51 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=94=B9=E5=87=BD=E6=95=B0?= =?UTF-8?q?=E9=A1=BA=E5=BA=8F=EF=BC=8C=E4=BC=98=E5=85=88=E5=AE=89=E8=A3=85?= =?UTF-8?q?=E5=9F=BA=E7=A1=80=E7=8E=AF=E5=A2=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- install.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index 915a204..9de7275 100644 --- a/install.sh +++ b/install.sh @@ -57,7 +57,7 @@ pre_check() { fi } -pre_check + install_soft() { (command -v apt >/dev/null 2>&1 && apt update && apt install "$*" -y) || @@ -70,6 +70,8 @@ install_base() { (install_soft curl wget git unzip gnupg) } +install_base +pre_check install_php() { echo -e "${green}开始安装PHP${plain}" @@ -129,7 +131,6 @@ install_maraidb() { # TODO # 自动设置数据库,并将用户名、数据库名与密码打印出来 -install_base install_php install_apache install_maraidb