Browse Source

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

master
Damian Minkov 10 years ago
parent
commit
c5bf2f86ca

+ 4
- 0
debian/jitsi-meet-prosody.config View File

1
+#!/bin/sh -e
2
+
3
+# Source debconf library.
4
+. /usr/share/debconf/confmodule

+ 9
- 0
debian/jitsi-meet-prosody.postinst View File

23
 
23
 
24
         . /etc/jitsi/videobridge/config
24
         . /etc/jitsi/videobridge/config
25
 
25
 
26
+        # loading debconf
27
+        . /usr/share/debconf/confmodule
28
+
29
+        # stores the hostname so we will reuse it later, like in purge
30
+        db_set jitsi-meet-prosody/jvb-hostname $JVB_HOSTNAME
31
+
32
+        # and we're done with debconf
33
+        db_stop
34
+
26
         PROSODY_CONFIG_PRESENT="true"
35
         PROSODY_CONFIG_PRESENT="true"
27
         PROSODY_HOST_CONFIG="/etc/prosody/conf.avail/$JVB_HOSTNAME.cfg.lua"
36
         PROSODY_HOST_CONFIG="/etc/prosody/conf.avail/$JVB_HOSTNAME.cfg.lua"
28
         # if there is no prosody config extract our template
37
         # if there is no prosody config extract our template

+ 1
- 1
debian/jitsi-meet-prosody.postrm View File

30
     ;;
30
     ;;
31
 
31
 
32
     purge)
32
     purge)
33
-        db_get jitsi-meet/jvb-hostname
33
+        db_get jitsi-meet-prosody/jvb-hostname
34
         JVB_HOSTNAME=$RET
34
         JVB_HOSTNAME=$RET
35
         if [ -n "$RET" ]; then
35
         if [ -n "$RET" ]; then
36
             rm -f /etc/prosody/conf.avail/$JVB_HOSTNAME.cfg.lua
36
             rm -f /etc/prosody/conf.avail/$JVB_HOSTNAME.cfg.lua

+ 5
- 0
debian/jitsi-meet-prosody.templates View File

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

Loading…
Cancel
Save