Search K
Appearance
Appearance
This script is called after the nightly Let's Encrypt renewal checks.
These custom scripts are used for before/after calls to letsencrypt.sh.
The hook letsencrypt_post.sh also has:
These hooks are called before/after an SSL is saved.
check_letsencrypt_expiries_post.sh if restart_apache_after_tally=0 is set Note that the tally will already restart after the nightly tally, so this action isn't needed UNLESS you specifically set:
restart_apache_after_tally=0in which case, you'd need something, like:
#!/bin/sh
if [ "$renewed" = "1" ]; then
echo "action=httpd&value=reload&affect_php_fpm=no" >> /usr/local/directadmin/data/task.queue
fi
exit 0;saved via /usr/local/directadmin/scripts/custom/check_letsencrypt_expiries_post.sh. Correct the permissions and ownership:
chmod 700 /usr/local/directadmin/scripts/custom/check_letsencrypt_expiries_post.sh
chown diradmin. /usr/local/directadmin/scripts/custom/check_letsencrypt_expiries_post.shHowever, not restarting after a tally means that any suspended Users might not have their configs set correctly... so we cannot really recommend restart_apache_after_tally=0 unless you have other checks, that trigger restarts of everything that needs a restart, via other means.