浏览代码

Uses jvb config file from the new location. Fixes a problem where reconfiguring can break package installation due to missing jvb config file.

master
damencho 9 年前
父节点
当前提交
5a254ba949
共有 1 个文件被更改,包括 8 次插入1 次删除
  1. 8
    1
      debian/jitsi-meet.postinst

+ 8
- 1
debian/jitsi-meet.postinst 查看文件

@@ -21,7 +21,6 @@ case "$1" in
21 21
     configure)
22 22
 
23 23
         JVB_ETC_CONFIG="/etc/jitsi/videobridge/config"
24
-        JVB_CONFIG="/usr/share/jitsi-videobridge/.sip-communicator/sip-communicator.properties"
25 24
 
26 25
         . $JVB_ETC_CONFIG
27 26
 
@@ -65,11 +64,19 @@ case "$1" in
65 64
 
66 65
         # this is new install let's configure jvb to serve meet
67 66
         if [[ -z $FORCE_NGINX && ( -z $JVB_HOSTNAME_OLD || "$JVB_SERVE" = "true" ) ]] ; then
67
+
68
+            JVB_CONFIG="/etc/jitsi/videobridge/sip-communicator.properties"
69
+
68 70
             # this is a reconfigure, lets just delete old links
69 71
             if [ "$RECONFIGURING" = "true" ] ; then
70 72
                 rm -f $JVB_CONFIG
71 73
             fi
72 74
 
75
+            # we will write to the file if missing create it
76
+            if [ ! -f $JVB_CONFIG ] ; then
77
+                touch $JVB_CONFIG
78
+            fi
79
+
73 80
             # configure jvb
74 81
             echo "AUTHBIND=yes" >> $JVB_ETC_CONFIG
75 82
             sed -i "s/JVB_OPTS=.*/JVB_OPTS=--apis=rest,xmpp/g" $JVB_ETC_CONFIG

正在加载...
取消
保存