Browse Source

Uses port definition rather then wild card address when configuring authbind.

master
damencho 9 years ago
parent
commit
74c531aed6
1 changed files with 7 additions and 7 deletions
  1. 7
    7
      debian/jitsi-meet.postinst

+ 7
- 7
debian/jitsi-meet.postinst View File

92
             OWNER=$(stat -c '%U' /usr/share/jitsi-videobridge)
92
             OWNER=$(stat -c '%U' /usr/share/jitsi-videobridge)
93
             GROUP=$(stat -c '%G' /usr/share/jitsi-videobridge)
93
             GROUP=$(stat -c '%G' /usr/share/jitsi-videobridge)
94
             JVB_UID="`id -u $OWNER`"
94
             JVB_UID="`id -u $OWNER`"
95
-            if [ ! -f "/etc/authbind/byuid/$JVB_UID" ] ; then
96
-                if [ ! -d "/etc/authbind/byuid" ] ; then
97
-                        mkdir -p /etc/authbind/byuid
95
+            if [ ! -f "/etc/authbind/byport/443" ] ; then
96
+                if [ ! -d "/etc/authbind/byport" ] ; then
97
+                        mkdir -p /etc/authbind/byport
98
                         chmod 755 /etc/authbind
98
                         chmod 755 /etc/authbind
99
-                        chmod 755 /etc/authbind/byuid
99
+                        chmod 755 /etc/authbind/byport
100
                 fi
100
                 fi
101
-                echo '::,443' >/etc/authbind/byuid/$JVB_UID
102
-                chown $OWNER:$GROUP /etc/authbind/byuid/$JVB_UID
103
-                chmod 700 /etc/authbind/byuid/$JVB_UID
101
+                touch /etc/authbind/byport/443
102
+                chown $OWNER /etc/authbind/byport/443
103
+                chmod 755 /etc/authbind/byport/443
104
             fi
104
             fi
105
 
105
 
106
             if [ "$CERT_CHOICE" = "$UPLOADED_CERT_CHOICE" ] ; then
106
             if [ "$CERT_CHOICE" = "$UPLOADED_CERT_CHOICE" ] ; then

Loading…
Cancel
Save