From: Ian Kelling Date: Tue, 29 Mar 2022 06:55:59 +0000 (-0400) Subject: do deploy hooks on initial cert X-Git-Url: https://iankelling.org/git/?p=basic-https-conf;a=commitdiff_plain;h=1ceb8d43b9e7f37f3a1a6237ded05fda4b90fcaa do deploy hooks on initial cert --- diff --git a/web-conf b/web-conf index 6b18b2e..3373e26 100755 --- a/web-conf +++ b/web-conf @@ -154,6 +154,13 @@ if $ssl; then # cleanup the call to ourselves a short bit ago rm $se/$h.conf fi + # these scripts only run on renew, that is kinda dumb. + export RENEWED_LINEAGE=/etc/letsencrypt/live/$h + for script in /etc/letsencrypt/renewal-hooks/deploy/*; do + if [[ -x $script ]]; then + "$script" + fi + done fi