diff options
author | Jonas Smedegaard <dr@jones.dk> | 2018-07-19 14:16:25 +0200 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2018-07-19 14:16:25 +0200 |
commit | 980a450a1adf6422f624685d345e2723724cde41 (patch) | |
tree | 3798bf0b982d6eacb6b16e1d5cf25afc991bf763 | |
parent | d9dd0fc4593313fdb3e8a2cfb4e4848e687657a0 (diff) |
Support mumblehost.
-rwxr-xr-x | dehydrated/hook.sh | 9 |
1 files changed, 8 insertions, 1 deletions
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 } |