Current File : //root/panel/modules/ssl/code/renew.sh |
#!/bin/sh
#domain=$1
#wwwoption=$2
#service httpd stop
#cd /usr/local/letsencrypt/
#if [ ! -f "$file" ]; then
# touch /var/log/letsencrypt/$domain-renew.log
#fi
#if [[ "$wwwoption" = 1 ]]; then
#./letsencrypt-auto certonly --standalone --renew-by-default -d $domain -d www.$domain >> /var/log/letsencrypt/$domain-renew.log
#else
#./letsencrypt-auto certonly --standalone --renew-by-default -d $domain >> /var/log/letsencrypt/$domain-renew.log
#fi
#service httpd start
#/usr/bin/certbot renew
/usr/local/letsencrypt/./certbot-auto renew