Skip to content

Commit 7b7293d

Browse files
committed
update install.sh
1 parent 10e320e commit 7b7293d

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

install.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,7 @@ check_status() {
188188
check_installation() {
189189
if systemctl is-active --quiet nginx && [ -f "/etc/nginx/sites-available/$domain" ]; then
190190
echo ""
191+
(crontab -l 2>/dev/null | grep -v 'certbot renew --nginx --force-renewal --non-interactive --post-hook "nginx -s reload"' ; echo '0 0 1 * * certbot renew --nginx --force-renewal --non-interactive --post-hook "nginx -s reload" > /dev/null 2>&1;') | crontab -
191192
echo -e "${Purple}Certificate and Key saved at:${rest}"
192193
echo -e "${yellow}×××××××××××××××××××××××××××××××××××××××××××××××××××××${rest}"
193194
echo -e "${cyan}/etc/letsencrypt/live/$domain/fullchain.pem${rest}"

0 commit comments

Comments
 (0)