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
Updates postinst prosody (#2896)
Дамян Минков2ee8f1ef5875
diff --git a/debian/jitsi-meet-prosody.postinst b/debian/jitsi-meet-prosody.postinstindex 2d16b80acb..2b82f0154c 100644--- a/debian/jitsi-meet-prosody.postinst+++ b/debian/jitsi-meet-prosody.postinst@@ -50,17 +50,21 @@ case "$1" indb_get jicofo/jicofo-authpasswordif [ -z "$RET" ] ; then- db_input critical jicofo/jicofo-authpassword || true- db_go+ # 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@@@@####'`+ db_set jicofo/jicofo-authpassword "$JICOFO_AUTH_PASSWORD"+ else+ JICOFO_AUTH_PASSWORD="$RET"fi- JICOFO_AUTH_PASSWORD="$RET"db_get jicofo/jicofosecretif [ -z "$RET" ] ; then- db_input critical jicofo/jicofosecret || true- db_go+ # 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@@@@####'`+ db_set jicofo/jicofosecret "$JICOFO_SECRET"+ else+ JICOFO_SECRET="$RET"fi- JICOFO_SECRET="$RET"JICOFO_AUTH_DOMAIN="auth.$JVB_HOSTNAME"@@ -88,6 +92,7 @@ case "$1" inif [ ! -f $PROSODY_HOST_CONFIG ] && ! grep -q "VirtualHost \"$JVB_HOSTNAME\"" $PROSODY_CONFIG_OLD; thenPROSODY_CONFIG_PRESENT="false"mkdir -p /etc/prosody/conf.avail/+ mkdir -p /etc/prosody/conf.d/cp /usr/share/doc/jitsi-meet-prosody/prosody.cfg.lua-jvb.example $PROSODY_HOST_CONFIGsed -i "s/jitmeet.example.com/$JVB_HOSTNAME/g" $PROSODY_HOST_CONFIGsed -i "s/jitmeetSecret/$JVB_SECRET/g" $PROSODY_HOST_CONFIG@@ -132,7 +137,9 @@ case "$1" inln -sf /var/lib/prosody/$JICOFO_AUTH_DOMAIN.crt $AUTH_CRT_FILEln -sf /var/lib/prosody/$JICOFO_AUTH_DOMAIN.crt /usr/local/share/ca-certificates/$JICOFO_AUTH_DOMAIN.crt- update-ca-certificates+ # we need to force updating certificates, in some cases java trust+ # store not get re-generated with latest changes+ update-ca-certificates -f# don't fail on systems with custom config ($PROSODY_HOST_CONFIG is missing)if [ -f $PROSODY_HOST_CONFIG ]; thendiff --git a/debian/jitsi-meet-prosody.postrm b/debian/jitsi-meet-prosody.postrmindex 89a1ff87bd..8f2c334ff7 100644--- a/debian/jitsi-meet-prosody.postrm+++ b/debian/jitsi-meet-prosody.postrm@@ -35,6 +35,14 @@ case "$1" inif [ -n "$RET" ]; thenrm -f /etc/prosody/conf.avail/$JVB_HOSTNAME.cfg.luarm -f /etc/prosody/conf.d/$JVB_HOSTNAME.cfg.lua++ # clean up generated certificates+ rm -f /etc/prosody/certs/$JVB_HOSTNAME.crt+ rm -f /etc/prosody/certs/$JVB_HOSTNAME.key+ rm -f /etc/prosody/certs/auth.$JVB_HOSTNAME.crt+ rm -f /etc/prosody/certs/auth.$JVB_HOSTNAME.key+ rm -rf /var/lib/prosody/auth.$JVB_HOSTNAME.*+ rm -rf /var/lib/prosody/$JVB_HOSTNAME.*fi# Clear the debconf variable