From 5f891fd0605acb52864f79814bff7931834cbd34 Mon Sep 17 00:00:00 2001 From: bgrozev Date: Thu, 21 Jan 2021 13:19:39 -0600 Subject: [PATCH] debian: Do not read jicofosecret. (#8454) --- debian/jitsi-meet-prosody.postinst | 10 ---------- debian/jitsi-meet-prosody.templates | 5 ----- 2 files changed, 15 deletions(-) diff --git a/debian/jitsi-meet-prosody.postinst b/debian/jitsi-meet-prosody.postinst index 4e78758e15..89dc23b98d 100644 --- a/debian/jitsi-meet-prosody.postinst +++ b/debian/jitsi-meet-prosody.postinst @@ -60,15 +60,6 @@ case "$1" in JICOFO_AUTH_PASSWORD="$RET" fi - db_get jicofo/jicofosecret - if [ -z "$RET" ] ; then - # if secret is missing generate it, and store it - JICOFO_SECRET=`generateRandomPassword` - db_set jicofo/jicofosecret "$JICOFO_SECRET" - else - JICOFO_SECRET="$RET" - fi - JICOFO_AUTH_DOMAIN="auth.$JVB_HOSTNAME" # detect dpkg-reconfigure, just delete old links @@ -107,7 +98,6 @@ case "$1" in mkdir -p /etc/prosody/conf.d/ cp /usr/share/jitsi-meet-prosody/prosody.cfg.lua-jvb.example $PROSODY_HOST_CONFIG sed -i "s/jitmeet.example.com/$JVB_HOSTNAME/g" $PROSODY_HOST_CONFIG - sed -i "s/focusSecret/$JICOFO_SECRET/g" $PROSODY_HOST_CONFIG sed -i "s/focusUser/$JICOFO_AUTH_USER/g" $PROSODY_HOST_CONFIG sed -i "s/__turnSecret__/$TURN_SECRET/g" $PROSODY_HOST_CONFIG if [ ! -f /etc/prosody/conf.d/$JVB_HOSTNAME.cfg.lua ]; then diff --git a/debian/jitsi-meet-prosody.templates b/debian/jitsi-meet-prosody.templates index fc51949d4c..eecc64682c 100644 --- a/debian/jitsi-meet-prosody.templates +++ b/debian/jitsi-meet-prosody.templates @@ -24,11 +24,6 @@ Type: password _Description: Jicofo user password: The secret used to connect to xmpp server as jicofo user. -Template: jicofo/jicofosecret -Type: password -_Description: Jicofo Component secret: - The secret used to connect to xmpp server as component - Template: jitsi-meet-prosody/turn-secret Type: string _Description: The turn server secret