From 05c295d3d6913cab9c370c73f4f47c5808ee2c19 Mon Sep 17 00:00:00 2001 From: Xi Xu Date: Sat, 12 Jul 2025 14:23:44 +0800 Subject: [PATCH] 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. --- README.md | 4 ++-- setup.sh | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index ff84d09..de38298 100644 --- a/README.md +++ b/README.md @@ -93,7 +93,7 @@ To customize the portfolio: /etc/xray/cert/ # SSL certificates directory ├── x.crt # SSL certificate ├── x.key # Private key -└── cert-renew.sh # Certificate renewal script +└── renew.sh # Certificate renewal script ``` ## 🔒 Security Features @@ -110,7 +110,7 @@ To customize the portfolio: Certificates are automatically renewed monthly via cron job. To manually renew: ```bash -bash ~/cert/etc/xray/cert/cert-renew.sh +bash ~/cert/etc/xray/cert/renew.sh ``` ### Nginx Configuration diff --git a/setup.sh b/setup.sh index a40aa1e..cbb7877 100644 --- a/setup.sh +++ b/setup.sh @@ -278,7 +278,7 @@ sudo mkdir -p /etc/xray/cert chmod +r /etc/xray/cert/x.key # Create certificate renewal script -cat >/etc/xray/cert/cert-renew.sh </etc/xray/cert/renew.sh <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 rm temp_cron