Uses port definition rather then wild card address when configuring authbind.
This commit is contained in:
parent
47bb9439db
commit
74c531aed6
|
@ -92,15 +92,15 @@ case "$1" in
|
|||
OWNER=$(stat -c '%U' /usr/share/jitsi-videobridge)
|
||||
GROUP=$(stat -c '%G' /usr/share/jitsi-videobridge)
|
||||
JVB_UID="`id -u $OWNER`"
|
||||
if [ ! -f "/etc/authbind/byuid/$JVB_UID" ] ; then
|
||||
if [ ! -d "/etc/authbind/byuid" ] ; then
|
||||
mkdir -p /etc/authbind/byuid
|
||||
if [ ! -f "/etc/authbind/byport/443" ] ; then
|
||||
if [ ! -d "/etc/authbind/byport" ] ; then
|
||||
mkdir -p /etc/authbind/byport
|
||||
chmod 755 /etc/authbind
|
||||
chmod 755 /etc/authbind/byuid
|
||||
chmod 755 /etc/authbind/byport
|
||||
fi
|
||||
echo '::,443' >/etc/authbind/byuid/$JVB_UID
|
||||
chown $OWNER:$GROUP /etc/authbind/byuid/$JVB_UID
|
||||
chmod 700 /etc/authbind/byuid/$JVB_UID
|
||||
touch /etc/authbind/byport/443
|
||||
chown $OWNER /etc/authbind/byport/443
|
||||
chmod 755 /etc/authbind/byport/443
|
||||
fi
|
||||
|
||||
if [ "$CERT_CHOICE" = "$UPLOADED_CERT_CHOICE" ] ; then
|
||||
|
|
Loading…
Reference in New Issue