Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
TypeScript debiandeep-videojitsijitsi-meetscalable-video-conferencessfuvideovideo-communicationvideo-conferencingwebrtc
Fix turn file link (#5601)
Дамян Минковb372b2ccf233
diff --git a/debian/jitsi-meet-turnserver.links b/debian/jitsi-meet-turnserver.linksdeleted file mode 100644index 9518f96ac1..0000000000--- a/debian/jitsi-meet-turnserver.links+++ /dev/null@@ -1 +0,0 @@-/usr/share/jitsi-meet-turnserver/jitsi-meet.conf /etc/nginx/modules-enabled/60-jitsi-meet.confdiff --git a/debian/jitsi-meet-turnserver.postinst b/debian/jitsi-meet-turnserver.postinstindex 1526f73333..07b4424236 100644--- a/debian/jitsi-meet-turnserver.postinst+++ b/debian/jitsi-meet-turnserver.postinst@@ -46,14 +46,22 @@ case "$1" in# check whether other enabled hosts has listen 443if cat ${site} | grep -v "^[[:space:]]*#" | grep listen | grep -q "^.*[[:space:]:]443[;[:space:]].*" ; then# nothing to do+ echo "------------------------------------------------"echo ""echo "turnserver not configured as other nginx sites use port 443"echo ""+ echo "------------------------------------------------"db_stopexit 0fidone+ # if there was a turn config backup it so we can configure+ # we cannot recognize at the moment is this a user config or default config when installing coturn+ if [[ -f $TURN_CONFIG ]] && ! grep -q "jitsi-meet coturn config" "$TURN_CONFIG" ; then+ mv $TURN_CONFIG $TURN_CONFIG.bak+ fi+# detect dpkg-reconfigure, just delete old linksdb_get jitsi-meet-turnserver/jvb-hostnameJVB_HOSTNAME_OLD=$RET@@ -67,17 +75,21 @@ case "$1" indb_get jitsi-meet/jvb-serve || trueif [ ! -f $NGINX_CONFIG -o "$RET" = "true" ] ; then# nothing to do+ echo "------------------------------------------------"echo ""echo "turnserver not configured as no nginx found to multiplex traffic"echo ""+ echo "------------------------------------------------"db_stopexit 0fiif [[ -f $TURN_CONFIG ]] ; then+ echo "------------------------------------------------"echo ""echo "turnserver is already configured on this machine, skipping."echo ""+ echo "------------------------------------------------"db_stopexit 0fi@@ -130,7 +142,8 @@ case "$1" ininvoke-rc.d coturn restart || trueNGINX_STREAM_CONFIG="/etc/nginx/modules-enabled/60-jitsi-meet.conf"- if [ -f $NGINX_STREAM_CONFIG ] && [ -f $NGINX_CONFIG ] ; then+ if [ ! -f $NGINX_STREAM_CONFIG ] && [ -f $NGINX_CONFIG ] ; then+ ln -s /usr/share/jitsi-meet-turnserver/jitsi-meet.conf $NGINX_STREAM_CONFIGsed -i "s/listen 443 ssl/listen 4444 ssl http2/g" $NGINX_CONFIGsed -i "s/listen \[\:\:\]\:443 ssl/listen \[\:\:\]\:4444 ssl http2/g" $NGINX_CONFIGinvoke-rc.d nginx reload || truediff --git a/debian/jitsi-meet-turnserver.postrm b/debian/jitsi-meet-turnserver.postrmindex aad705a026..90ef725743 100644--- a/debian/jitsi-meet-turnserver.postrm+++ b/debian/jitsi-meet-turnserver.postrm@@ -24,6 +24,7 @@ set -ecase "$1" inremove)+ rm -rf /etc/nginx/modules-enabled/60-jitsi-meet.confif [ -x "/etc/init.d/nginx" ]; theninvoke-rc.d nginx reload || truefi@@ -32,6 +33,8 @@ case "$1" infi;;purge)+ rm -rf /etc/nginx/modules-enabled/60-jitsi-meet.conf+ rm -rf /etc/turnserver.confif [ -x "/etc/init.d/nginx" ]; theninvoke-rc.d nginx reload || truefi