do deploy hooks on initial cert
authorIan Kelling <iank@fsf.org>
Tue, 29 Mar 2022 06:55:59 +0000 (02:55 -0400)
committerIan Kelling <iank@fsf.org>
Tue, 29 Mar 2022 06:55:59 +0000 (02:55 -0400)
web-conf

index 6b18b2e5c7ae2b63fb3f10d208cc4a4cec61af92..3373e26bdb9458666538cffd1789d9d1c7d4dc5e 100755 (executable)
--- 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