mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2025-12-30 11:22:31 +00:00
Fixes purge jitsi-meet-prosody (missing debconf configs).
This commit is contained in:
4
debian/jitsi-meet-prosody.config
vendored
Normal file
4
debian/jitsi-meet-prosody.config
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
#!/bin/sh -e
|
||||
|
||||
# Source debconf library.
|
||||
. /usr/share/debconf/confmodule
|
||||
9
debian/jitsi-meet-prosody.postinst
vendored
9
debian/jitsi-meet-prosody.postinst
vendored
@@ -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
|
||||
|
||||
2
debian/jitsi-meet-prosody.postrm
vendored
2
debian/jitsi-meet-prosody.postrm
vendored
@@ -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
5
debian/jitsi-meet-prosody.templates
vendored
Normal 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.
|
||||
Reference in New Issue
Block a user