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
debian: Skip turn config if other sites are available listening on 443.
damencho82aa51770aeb
diff --git a/debian/jitsi-meet-turnserver.postinst b/debian/jitsi-meet-turnserver.postinstindex 99795dade4..f408d60c21 100644--- a/debian/jitsi-meet-turnserver.postinst+++ b/debian/jitsi-meet-turnserver.postinst@@ -36,6 +36,24 @@ case "$1" inNGINX_CONFIG="/etc/nginx/sites-available/$JVB_HOSTNAME.conf"JITSI_MEET_CONFIG="/etc/jitsi/meet/$JVB_HOSTNAME-config.js"+ NGINX_SITES_ENABLED="/etc/nginx/sites-enabled/"+ NGINX_CONFIG_ENABLED="${NGINX_SITES_ENABLED}${JVB_HOSTNAME}.conf"+ for site in ${NGINX_SITES_ENABLED}*; do+ # if it is not a file continue+ [ -f "${site}" ] || continue+ # if it is our config skip+ [ "${site}" != "${NGINX_CONFIG_ENABLED}" ] || continue+ # check whether other enabled hosts has listen 443+ if cat ${site} | grep -v "^[[:space:]]*#" | grep listen | grep -q "^.*[[:space:]:]443[;[:space:]].*" ; then+ # nothing to do+ echo ""+ echo "turnserver not configured as other nginx sites use port 443"+ echo ""+ db_stop+ exit 0+ fi+ done+# detect dpkg-reconfigure, just delete old linksdb_get jitsi-meet-turnserver/jvb-hostnameJVB_HOSTNAME_OLD=$RET