summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJustin Gassner <justin.gassner@mailbox.org>2024-04-07 14:49:01 +0200
committerJustin Gassner <justin.gassner@mailbox.org>2024-04-07 14:49:01 +0200
commit199e9940f0c84ccd6aa68b183ee94abf0951d2b6 (patch)
tree1458fa1172ae92cab2282a564433b1d6efec845c
parente0fb7a16adc48c6ef329d7ef2719e3d8f6c90d2a (diff)
downloadarch-config-199e9940f0c84ccd6aa68b183ee94abf0951d2b6.tar.zst
Add Let's Encrypt renewal hooks
-rwxr-xr-xetc/letsencrypt/renewal-hooks/deploy/combine1
-rwxr-xr-xetc/letsencrypt/renewal-hooks/post/start-lighttpd1
-rwxr-xr-xetc/letsencrypt/renewal-hooks/pre/stop-lighttpd1
3 files changed, 3 insertions, 0 deletions
diff --git a/etc/letsencrypt/renewal-hooks/deploy/combine b/etc/letsencrypt/renewal-hooks/deploy/combine
new file mode 100755
index 0000000..cfac599
--- /dev/null
+++ b/etc/letsencrypt/renewal-hooks/deploy/combine
@@ -0,0 +1 @@
+cat /etc/letsencrypt/live/*/{privkey.pem,fullchain.pem} > /etc/letsencrypt/live/*/combined.pem
diff --git a/etc/letsencrypt/renewal-hooks/post/start-lighttpd b/etc/letsencrypt/renewal-hooks/post/start-lighttpd
new file mode 100755
index 0000000..38fc08a
--- /dev/null
+++ b/etc/letsencrypt/renewal-hooks/post/start-lighttpd
@@ -0,0 +1 @@
+systemctl start lighttpd.service
diff --git a/etc/letsencrypt/renewal-hooks/pre/stop-lighttpd b/etc/letsencrypt/renewal-hooks/pre/stop-lighttpd
new file mode 100755
index 0000000..b8672d7
--- /dev/null
+++ b/etc/letsencrypt/renewal-hooks/pre/stop-lighttpd
@@ -0,0 +1 @@
+systemctl stop lighttpd.service