From a8372cd44b19f7e5bb70d62e600ece2c4adcc297 Mon Sep 17 00:00:00 2001 From: zhang-pu <4738@163.com> Date: Mon, 1 Jun 2026 12:19:46 +0800 Subject: [PATCH] Update install.sh --- install.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/install.sh b/install.sh index e385bba..4642760 100644 --- a/install.sh +++ b/install.sh @@ -53,12 +53,12 @@ else $PKG_MANAGER install -y php php-fpm php-mysql php-mbstring php-xml php-curl php-zip fi -if command -v mysql &>/dev/null; then +if command -v mariadb &>/dev/null; then echo " MySQL 已安装,跳过" else - $PKG_MANAGER install -y mysql-server - systemctl enable mysql - systemctl start mysql + $PKG_MANAGER install -y mariadb-server + systemctl enable mariadb + systemctl start mariadb fi # Python3 和 pip @@ -138,7 +138,7 @@ cat > /etc/systemd/system/tpanel.service << 'EOF' [Unit] Description=TPanel - Linux Website Management Panel Documentation=https://tpanel.cn -After=network.target mysql.service +After=network.target mariadb.service [Service] Type=simple