Compare commits

..

2 Commits

Author SHA1 Message Date
cf1788bd83 refactor(meta): Harmonize permissions 2023-06-20 00:13:02 +02:00
131114e4b7 feat(haproxy): Add ACME deploy helper script 2023-06-20 00:12:09 +02:00
3 changed files with 8 additions and 0 deletions

0
LICENSE Normal file → Executable file
View File

0
README.md Normal file → Executable file
View File

8
haproxy_reload.sh Executable file
View File

@@ -0,0 +1,8 @@
#!/bin/bash
declare haproxy_container="${1:?}"
if systemctl --quiet is-active docker.service; then
if [[ "$( docker container inspect -f '{{.State.Running}}' "${haproxy_container}" 2> /dev/null )" == "true" ]]; then
docker exec -t "${haproxy_container}" haproxy -c -f /usr/local/etc/haproxy/haproxy.cfg && \
docker kill --signal SIGHUP "${haproxy_container}"
fi
fi