ソースを参照

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

master
Damian Minkov 10年前
コミット
c5bf2f86ca

+ 4
- 0
debian/jitsi-meet-prosody.config ファイルの表示

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

+ 9
- 0
debian/jitsi-meet-prosody.postinst ファイルの表示

@@ -23,6 +23,15 @@ case "$1" in
23 23
 
24 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 35
         PROSODY_CONFIG_PRESENT="true"
27 36
         PROSODY_HOST_CONFIG="/etc/prosody/conf.avail/$JVB_HOSTNAME.cfg.lua"
28 37
         # if there is no prosody config extract our template

+ 1
- 1
debian/jitsi-meet-prosody.postrm ファイルの表示

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

+ 5
- 0
debian/jitsi-meet-prosody.templates ファイルの表示

@@ -0,0 +1,5 @@
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.

読み込み中…
キャンセル
保存