This commit is contained in:
starry
2025-12-17 23:57:14 +08:00
committed by GitHub
parent 0dbfd46c82
commit 76ce16fbb2
3 changed files with 3 additions and 21 deletions

View File

@@ -17,7 +17,6 @@ while true; do
echo -e "\033[33m为防止输错请核对域名是否正确 (yes/no直接回车代表正确): \033[0m"
read CONFIRM
# 如果用户按回车,则默认为确认
if [[ -z "${CONFIRM// }" ]]; then
CONFIRM="yes"
fi
@@ -48,7 +47,6 @@ y
y
EOF
# 项目地址https://github.com/sky22333/shell
# 创建WordPress数据库和用户
DB_NAME="wordpress"
DB_USER="wpuser"
@@ -109,7 +107,7 @@ if systemctl is-active --quiet apache2; then
sudo systemctl disable apache2
sudo apt remove --purge apache2 -y
else
echo -e "当前环境是正常状态。"
echo -e "清理apache2成功"
fi
sudo bash -c "cat > /etc/caddy/Caddyfile" <<EOF