A cron job has failed with:
Hook command “/bin/run-parts /etc/letsencrypt/pre-hook.d/” returned error code 1
Error output from run-parts:
run-parts: failed to open directory /etc/letsencrypt/pre-hook.d/: No such file or directory
The command executed by cron was:
test -x /usr/bin/certbot -a ! -d /run/systemd/system && perl -e ‘sleep int(rand(3600))’ && certbot -q renew --pre-hook ‘/bin/run-parts /etc/letsencrypt/pre-hook.d/’ --post-hook ‘/bin/run-parts /etc/letsencrypt/post-hook.d/’ --renew-hook ‘/bin/run-parts /etc/letsencrypt/renew-hook.d/’
I had previously followed the instructions referred to in this post after updating Certbot
What’s the best way out of this? Can I re-install and keep my existing certificates? How?