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:
1 parent
9ea5ee7c44
commit
05c295d3d6
2 files changed
+5
-5
No files matched your search
@@ -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
|
||||
|
||||
@@ -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 <<EOF
|
||||
cat >/etc/xray/cert/renew.sh <<EOF
|
||||
#!/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
|
||||
echo "X Certificates Renewed"
|
||||
@@ -288,11 +288,11 @@ sudo systemctl restart xray
|
||||
echo "X Restarted"
|
||||
EOF
|
||||
|
||||
chmod +x /etc/xray/cert/cert-renew.sh
|
||||
chmod +x /etc/xray/cert/renew.sh
|
||||
|
||||
# Setup cron job
|
||||
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
|
||||
rm temp_cron
|
||||
|
||||
|
||||
Reference in new issue
Block a user