home · contact · privacy
Fix encoding bug.
[config] / all_new_2018 / linkable_etc_files / web / etc / cron.d / certbot
index e70c4fac21d41e7ec541e4803642cbf4bedabb38..1fd8aaf1ead066443772a3deda3b06df363ad2d4 100644 (file)
@@ -9,5 +9,9 @@ SHELL=/bin/sh
 PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
 
 # plomlompom added the --webroot -w /var/www/html/ so that renewal
-# works with nginx running.
-0 */12 * * * root test -x /usr/bin/certbot -a \! -d /run/systemd/system && perl -e 'sleep int(rand(3600))' && certbot -q renew --webroot -w /var/www/html/
+# works with nginx running, and the nginx reload post-hook so that
+# the new certificates are linked to by nginx. Note that by default
+# we rely on the systemd timer service file instead of this cronjob,
+# but since both are installed by the certbot package to serve which
+# ever of the two is used, we cautiously adapt both of them too.
+0 */12 * * * root test -x /usr/bin/certbot -a \! -d /run/systemd/system && perl -e 'sleep int(rand(3600))' && certbot -q renew --webroot -w /var/www/html/ --post-hook "service nginx reload"