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

pull/195/head 259
Damian Minkov 10 years ago
parent 13846b022c
commit c5bf2f86ca
  1. 4
      debian/jitsi-meet-prosody.config
  2. 9
      debian/jitsi-meet-prosody.postinst
  3. 2
      debian/jitsi-meet-prosody.postrm
  4. 5
      debian/jitsi-meet-prosody.templates

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

@ -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

@ -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

@ -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.
Loading…
Cancel
Save