Fixes purge jitsi-meet-prosody (missing debconf configs).
This commit is contained in:
parent
13846b022c
commit
c5bf2f86ca
|
@ -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
|
. /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_CONFIG_PRESENT="true"
|
||||||
PROSODY_HOST_CONFIG="/etc/prosody/conf.avail/$JVB_HOSTNAME.cfg.lua"
|
PROSODY_HOST_CONFIG="/etc/prosody/conf.avail/$JVB_HOSTNAME.cfg.lua"
|
||||||
# if there is no prosody config extract our template
|
# if there is no prosody config extract our template
|
||||||
|
|
|
@ -30,7 +30,7 @@ case "$1" in
|
||||||
;;
|
;;
|
||||||
|
|
||||||
purge)
|
purge)
|
||||||
db_get jitsi-meet/jvb-hostname
|
db_get jitsi-meet-prosody/jvb-hostname
|
||||||
JVB_HOSTNAME=$RET
|
JVB_HOSTNAME=$RET
|
||||||
if [ -n "$RET" ]; then
|
if [ -n "$RET" ]; then
|
||||||
rm -f /etc/prosody/conf.avail/$JVB_HOSTNAME.cfg.lua
|
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…
Reference in New Issue