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: clean up password generation, use 16 characters
bgrozev36113fd54f14
diff --git a/debian/jitsi-meet-prosody.postinst b/debian/jitsi-meet-prosody.postinstindex 2da07f4ab6..d03ad0e9c1 100644--- a/debian/jitsi-meet-prosody.postinst+++ b/debian/jitsi-meet-prosody.postinst@@ -17,6 +17,9 @@ set -e# for details, see http://www.debian.org/doc/debian-policy/ or# the debian-policy package+function generateRandomPassword() {+ cat /dev/urandom | tr -dc 'a-zA-Z0-9' | head -c 16+}case "$1" inconfigure)@@ -51,7 +54,7 @@ case "$1" indb_get jicofo/jicofo-authpasswordif [ -z "$RET" ] ; then# if password is missing generate it, and store it- JICOFO_AUTH_PASSWORD=`head -c 8 /dev/urandom | tr '\0-\377' 'a-zA-Z0-9a-zA-Z0-9a-zA-Z0-9a-zA-Z0-9@@@@####'`+ JICOFO_AUTH_PASSWORD=`generateRandomPassword`db_set jicofo/jicofo-authpassword "$JICOFO_AUTH_PASSWORD"elseJICOFO_AUTH_PASSWORD="$RET"@@ -60,7 +63,7 @@ case "$1" indb_get jicofo/jicofosecretif [ -z "$RET" ] ; then# if secret is missing generate it, and store it- JICOFO_SECRET=`head -c 8 /dev/urandom | tr '\0-\377' 'a-zA-Z0-9a-zA-Z0-9a-zA-Z0-9a-zA-Z0-9@@@@####'`+ JICOFO_SECRET=`generateRandomPassword`db_set jicofo/jicofosecret "$JICOFO_SECRET"elseJICOFO_SECRET="$RET"@@ -83,7 +86,7 @@ case "$1" indb_get jitsi-meet-prosody/turn-secretif [ -z "$RET" ] ; then# 8-chars random secret used for the turnserver- TURN_SECRET=`cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 8 | head -n 1`+ TURN_SECRET=`generateRandomPassword`db_set jitsi-meet-prosody/turn-secret "$TURN_SECRET"elseTURN_SECRET="$RET"