修改文件名称, 修改脚本内容

This commit is contained in:
vincent 2022-02-09 10:19:27 +08:00
parent 7fb0ac6634
commit 7c5f6196c2
2 changed files with 15 additions and 10 deletions

View File

@ -1,10 +0,0 @@
#!/bin/bash
echo $(date +%F%n%T)
mkdir -p /root/xray_cert
sudo /root/.acme.sh/acme.sh --install-cert --fullchain-file /root/xray_cert/xray.crt --key-file /root/xray_cert/xray.key --ecc -d a01.wingogo.tk
echo "Xray Certificates Renewed"
sudo systemctl restart xray
echo "Xray Restarted"

15
renew_ssl_cert.sh Normal file
View File

@ -0,0 +1,15 @@
#!/bin/bash
# echo $(date +%F%n%T)
# mkdir -p /root/xray_cert
# sudo /root/.acme.sh/acme.sh --install-cert --fullchain-file /root/xray_cert/xray.crt --key-file /root/xray_cert/xray.key --ecc -d a01.wingogo.tk
# echo "Xray Certificates Renewed"
# sudo systemctl restart xray
# echo "Xray Restarted"
systemctl stop nginx;
acme.sh --renew -d 你的域名 --ecc;
systemctl restart nginx;