From 980a450a1adf6422f624685d345e2723724cde41 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Thu, 19 Jul 2018 14:16:25 +0200 Subject: Support mumblehost. --- dehydrated/hook.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/dehydrated/hook.sh b/dehydrated/hook.sh index 9e0a009..f815b42 100755 --- a/dehydrated/hook.sh +++ b/dehydrated/hook.sh @@ -19,9 +19,10 @@ servicehosts() { } MAILHOSTS=$(servicehosts mail postconf) || true CHATHOSTS=$(servicehosts chat ejabberdctl) || true +MUMBLEHOSTS=$(servicehosts mumble murmurd) || true cert_fix() { - DOMAIN="$1"; KEYFILE="$2"; FULLCHAINFILE="$4" + DOMAIN="$1"; KEYFILE="$2"; CERTFILE="$3"; FULLCHAINFILE="$4" case "$DOMAIN" in "$MAILHOSTS") set -x @@ -34,6 +35,12 @@ cert_fix() { sg ejabberd -c "umask 027; cat '$KEYFILE' '$FULLCHAINFILE' > '/etc/ejabberd/$DOMAIN.pem'" #service ejabberd force-reload ;; + "$MUMBLEHOSTS") + set -x + sg mumble-server -c "umask 027; cat '$KEYFILE' > '/etc/mumble-server-$DOMAIN.key'" + sg mumble-server -c "umask 027; cat '$CERTFILE' > '/etc/mumble-server-$DOMAIN.pem'" + service mumble-server force-reload + ;; esac } -- cgit v1.2.3