Browse Source

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 years ago
parent
commit
5a254ba949
1 changed files with 8 additions and 1 deletions
  1. 8
    1
      debian/jitsi-meet.postinst

+ 8
- 1
debian/jitsi-meet.postinst View File

21
     configure)
21
     configure)
22
 
22
 
23
         JVB_ETC_CONFIG="/etc/jitsi/videobridge/config"
23
         JVB_ETC_CONFIG="/etc/jitsi/videobridge/config"
24
-        JVB_CONFIG="/usr/share/jitsi-videobridge/.sip-communicator/sip-communicator.properties"
25
 
24
 
26
         . $JVB_ETC_CONFIG
25
         . $JVB_ETC_CONFIG
27
 
26
 
65
 
64
 
66
         # this is new install let's configure jvb to serve meet
65
         # this is new install let's configure jvb to serve meet
67
         if [[ -z $FORCE_NGINX && ( -z $JVB_HOSTNAME_OLD || "$JVB_SERVE" = "true" ) ]] ; then
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
             # this is a reconfigure, lets just delete old links
70
             # this is a reconfigure, lets just delete old links
69
             if [ "$RECONFIGURING" = "true" ] ; then
71
             if [ "$RECONFIGURING" = "true" ] ; then
70
                 rm -f $JVB_CONFIG
72
                 rm -f $JVB_CONFIG
71
             fi
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
             # configure jvb
80
             # configure jvb
74
             echo "AUTHBIND=yes" >> $JVB_ETC_CONFIG
81
             echo "AUTHBIND=yes" >> $JVB_ETC_CONFIG
75
             sed -i "s/JVB_OPTS=.*/JVB_OPTS=--apis=rest,xmpp/g" $JVB_ETC_CONFIG
82
             sed -i "s/JVB_OPTS=.*/JVB_OPTS=--apis=rest,xmpp/g" $JVB_ETC_CONFIG

Loading…
Cancel
Save