Fixes purge jitsi-meet-prosody (missing debconf configs).

This commit is contained in:
Damian Minkov 2014-11-17 12:16:34 +02:00
parent 13846b022c
commit c5bf2f86ca
4 changed files with 19 additions and 1 deletions

4
debian/jitsi-meet-prosody.config vendored Normal file
View File

@ -0,0 +1,4 @@
#!/bin/sh -e
# Source debconf library.
. /usr/share/debconf/confmodule

View File

@ -23,6 +23,15 @@ case "$1" in
. /etc/jitsi/videobridge/config
# loading debconf
. /usr/share/debconf/confmodule
# stores the hostname so we will reuse it later, like in purge
db_set jitsi-meet-prosody/jvb-hostname $JVB_HOSTNAME
# and we're done with debconf
db_stop
PROSODY_CONFIG_PRESENT="true"
PROSODY_HOST_CONFIG="/etc/prosody/conf.avail/$JVB_HOSTNAME.cfg.lua"
# if there is no prosody config extract our template

View File

@ -30,7 +30,7 @@ case "$1" in
;;
purge)
db_get jitsi-meet/jvb-hostname
db_get jitsi-meet-prosody/jvb-hostname
JVB_HOSTNAME=$RET
if [ -n "$RET" ]; then
rm -f /etc/prosody/conf.avail/$JVB_HOSTNAME.cfg.lua

5
debian/jitsi-meet-prosody.templates vendored Normal file
View File

@ -0,0 +1,5 @@
Template: jitsi-meet-prosody/jvb-hostname
Type: string
Default: ${default-key}
_Description: The hostname of the current installation:
The value for the hostname that is set in Jitsi Videobridge installation.