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: Fixes jaas and cert choice when package configure is reordered. (#12234)
Дамян Минков1b4bbcba3d1d
diff --git a/debian/jitsi-meet-prosody.postinst b/debian/jitsi-meet-prosody.postinstindex aeec94558d..8ff2d82a5a 100644--- a/debian/jitsi-meet-prosody.postinst+++ b/debian/jitsi-meet-prosody.postinst@@ -83,17 +83,28 @@ case "$1" inTURN_SECRET="$RET"fi- db_get jitsi-meet/jaas-choice- JAAS_INPUT="$RET"# In the case of updating from an older version the configure of -prosody package may happen before the -config# one, so if JAAS_INPUT is empty (the question is not asked), let's ask it now.- if [ -z "$JAAS_INPUT" ] ; then- db_subst jitsi-meet/jaas-choice domain "${JVB_HOSTNAME}"- db_set jitsi-meet/jaas-choice false- db_input critical jitsi-meet/jaas-choice || true+ db_get jitsi-meet/cert-choice+ CERT_CHOICE="$RET"+ if [ -z "$CERT_CHOICE" ] ; then+ db_input critical jitsi-meet/cert-choice || truedb_go+ db_get jitsi-meet/cert-choice+ CERT_CHOICE="$RET"+ fi+ SELF_SIGNED_CHOICE="Generate a new self-signed certificate"+ if [ "$CERT_CHOICE" != "$SELF_SIGNED_CHOICE" ]; thendb_get jitsi-meet/jaas-choiceJAAS_INPUT="$RET"+ if [ -z "$JAAS_INPUT" ] ; then+ db_subst jitsi-meet/jaas-choice domain "${JVB_HOSTNAME}"+ db_set jitsi-meet/jaas-choice false+ db_input critical jitsi-meet/jaas-choice || true+ db_go+ db_get jitsi-meet/jaas-choice+ JAAS_INPUT="$RET"+ fifi# and we're done with debconfdiff --git a/debian/jitsi-meet-web-config.postinst b/debian/jitsi-meet-web-config.postinstindex b53df1d423..8d6d6298db 100644--- a/debian/jitsi-meet-web-config.postinst+++ b/debian/jitsi-meet-web-config.postinst@@ -137,12 +137,17 @@ case "$1" infiif [ "$CERT_CHOICE" = "$LE_CERT_CHOICE" ] || [ "$CERT_CHOICE" = "$UPLOADED_CERT_CHOICE" ]; then- db_subst jitsi-meet/jaas-choice domain "${JVB_HOSTNAME}"- db_set jitsi-meet/jaas-choice false- db_input critical jitsi-meet/jaas-choice || true- db_go+ # Make sure jaas-choice is not answered alreadydb_get jitsi-meet/jaas-choiceJAAS_INPUT="$RET"+ if [ -z "$JAAS_INPUT" ] ; then+ db_subst jitsi-meet/jaas-choice domain "${JVB_HOSTNAME}"+ db_set jitsi-meet/jaas-choice false+ db_input critical jitsi-meet/jaas-choice || true+ db_go+ db_get jitsi-meet/jaas-choice+ JAAS_INPUT="$RET"+ fifiif [ "${JAAS_INPUT}" = "true" ] && ! grep -q "^var enableJaaS = true;$" $JITSI_MEET_CONFIG; then