Rename cert-renew.sh to renew.sh in cert directory

Updated references in README.md and setup.sh to use 'renew.sh' instead of 'cert-renew.sh' for the certificate renewal script. This improves consistency and simplifies the script name.
This commit is contained in:
xixu-me committed 2025-07-12 14:23:44 +08:00
1 parent 9ea5ee7c44
commit 05c295d3d6
2 files changed
+5 -5

No files matched your search

+2 -2
View File
@@ -93,7 +93,7 @@ To customize the portfolio:
/etc/xray/cert/ # SSL certificates directory /etc/xray/cert/ # SSL certificates directory
├── x.crt # SSL certificate ├── x.crt # SSL certificate
├── x.key # Private key ├── x.key # Private key
└── cert-renew.sh # Certificate renewal script └── renew.sh # Certificate renewal script
``` ```
## 🔒 Security Features ## 🔒 Security Features
@@ -110,7 +110,7 @@ To customize the portfolio:
Certificates are automatically renewed monthly via cron job. To manually renew: Certificates are automatically renewed monthly via cron job. To manually renew:
```bash ```bash
bash ~/cert/etc/xray/cert/cert-renew.sh bash ~/cert/etc/xray/cert/renew.sh
``` ```
### Nginx Configuration ### Nginx Configuration
+3 -3
View File
@@ -278,7 +278,7 @@ sudo mkdir -p /etc/xray/cert
chmod +r /etc/xray/cert/x.key chmod +r /etc/xray/cert/x.key
# Create certificate renewal script # Create certificate renewal script
cat >/etc/xray/cert/cert-renew.sh <<EOF cat >/etc/xray/cert/renew.sh <<EOF
#!/bin/bash #!/bin/bash
/home/$USERNAME/.acme.sh/acme.sh --install-cert -d $DOMAIN --ecc --fullchain-file /etc/xray/cert/x.crt --key-file /etc/xray/cert/x.key /home/$USERNAME/.acme.sh/acme.sh --install-cert -d $DOMAIN --ecc --fullchain-file /etc/xray/cert/x.crt --key-file /etc/xray/cert/x.key
echo "X Certificates Renewed" echo "X Certificates Renewed"
@@ -288,11 +288,11 @@ sudo systemctl restart xray
echo "X Restarted" echo "X Restarted"
EOF EOF
chmod +x /etc/xray/cert/cert-renew.sh chmod +x /etc/xray/cert/renew.sh
# Setup cron job # Setup cron job
crontab -l >temp_cron crontab -l >temp_cron
echo "0 1 1 * * bash /etc/xray/cert/cert-renew.sh" >>temp_cron echo "0 1 1 * * bash /etc/xray/cert/renew.sh" >>temp_cron
crontab temp_cron crontab temp_cron
rm temp_cron rm temp_cron