#update template

This commit is contained in:
2024-06-25 11:44:07 +08:00
parent 2dfb95af7e
commit 1b6f0402aa
22 changed files with 503 additions and 428 deletions

8
run.sh
View File

@@ -1,5 +1,13 @@
#!/bin/bash
if [ -f /etc/nginx/nginx.conf ] && [ -d /var/log/nginx ];then
echo 'nginx 已安装'
else
sudo apt-get install -y nginx
fi
# install docker?
rm -rf /etc/nginx/sites-available/* /etc/nginx/sites-enabled/*
cd /home/ubuntu/code/nginx-conf || return 1