mirror of
https://github.com/zhang-pu/tpanel.git
synced 2026-10-02 16:29:29 +08:00
Update install.sh
This commit is contained in:
parent
7a8cf2608a
commit
a8372cd44b
1 changed files with 5 additions and 5 deletions
10
install.sh
10
install.sh
|
|
@ -53,12 +53,12 @@ else
|
||||||
$PKG_MANAGER install -y php php-fpm php-mysql php-mbstring php-xml php-curl php-zip
|
$PKG_MANAGER install -y php php-fpm php-mysql php-mbstring php-xml php-curl php-zip
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if command -v mysql &>/dev/null; then
|
if command -v mariadb &>/dev/null; then
|
||||||
echo " MySQL 已安装,跳过"
|
echo " MySQL 已安装,跳过"
|
||||||
else
|
else
|
||||||
$PKG_MANAGER install -y mysql-server
|
$PKG_MANAGER install -y mariadb-server
|
||||||
systemctl enable mysql
|
systemctl enable mariadb
|
||||||
systemctl start mysql
|
systemctl start mariadb
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Python3 和 pip
|
# Python3 和 pip
|
||||||
|
|
@ -138,7 +138,7 @@ cat > /etc/systemd/system/tpanel.service << 'EOF'
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=TPanel - Linux Website Management Panel
|
Description=TPanel - Linux Website Management Panel
|
||||||
Documentation=https://tpanel.cn
|
Documentation=https://tpanel.cn
|
||||||
After=network.target mysql.service
|
After=network.target mariadb.service
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=simple
|
Type=simple
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue