Von LE-renewal, 3 Monate vorher, geschrieben in Bash.
[paste_expire] 1 Sekunde.
Einbetten
  1. Script:
  2.  
  3. #!/bin/bash
  4. cd /etc/letsencrypt
  5. certbot --nginx renew
  6. /usr/sbin/service nginx stop
  7. /usr/sbin/service mysql restart
  8. /usr/sbin/service redis-server restart
  9. /usr/sbin/service php7.3-fpm restart
  10. /usr/sbin/service nginx restart
  11. exit 0
  12.  
  13.  
  14. Log-Eintrag:
  15.  
  16. May  1 00:00:01 nextcloud16 CRON[11300]: (root) CMD (/root/ 2>&1)
  17. May  1 00:00:01 nextcloud16 CRON[11301]: (root) CMD (test -x /usr/bin/certbot -a \! -d /run/systemd/system && perl -e 'sleep int(rand(43200))' && certbot -q renew)
captcha