Update wp.sh

This commit is contained in:
NewName
2024-08-17 09:36:28 +08:00
parent 480da28c5c
commit c82f09a1cb

4
wp.sh
View File

@@ -78,8 +78,8 @@ sudo find /var/www/html/wordpress/ -type f -exec chmod 640 {} \;
sudo apt install -y debian-keyring debian-archive-keyring apt-transport-https
curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/gpg.key' | sudo gpg --dearmor -o /usr/share/keyrings/caddy-stable-archive-keyring.gpg
curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/debian.deb.txt' | sudo tee /etc/apt/sources.list.d/caddy-stable.list
sudo apt update
sudo apt install -y caddy
sudo apt update -q
sudo apt install -y -q caddy
# 配置Caddy
sudo bash -c "cat > /etc/caddy/Caddyfile" <<EOF