From 059213caa4d5cb084569d90b733df82a9f64e5e3 Mon Sep 17 00:00:00 2001 From: Ark74 Date: Wed, 28 Aug 2024 23:19:15 -0600 Subject: [PATCH] jigasi: update jigasi configuration. --- jigasi-vosk-backend.sh | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/jigasi-vosk-backend.sh b/jigasi-vosk-backend.sh index a143a1e..ed586dc 100644 --- a/jigasi-vosk-backend.sh +++ b/jigasi-vosk-backend.sh @@ -27,17 +27,15 @@ echo '' exit_if_not_installed jitsi-meet -export DOMAIN="$(find /etc/prosody/conf.d/ -name \*.lua|awk -F'.cfg' '!/localhost/{print $1}'|xargs basename)" -export JIG_TRANSC_PASWD="$(tr -dc "a-zA-Z0-9#*=" < /dev/urandom | fold -w 16 | head -n1)" -JIGASI_CONFIG="/etc/jitsi/jigasi/config" -MEET_CONF="/etc/jitsi/meet/${DOMAIN}-config.js" -JIG_SIP_CONF="/etc/jitsi/jigasi/config" +DOMAIN="$(find /etc/prosody/conf.d/ -name \*.lua|awk -F'.cfg' '!/localhost/{print $1}'|xargs basename)" +JIG_TRANSC_PASWD="$(tr -dc "a-zA-Z0-9#*=" < /dev/urandom | fold -w 16 | head -n1)" JIG_SIP_PROP="/etc/jitsi/jigasi/sip-communicator.properties" -#JIG_TRANSC_PASWD_B64="$(echo -n "$JIG_TRANSC_PASWD" | base64)" +export DOMAIN +export JIG_TRANSC_PASWD apt-get -q2 update -# Disbale +# Disable SIP account prompt by default echo "jigasi jigasi/sip-account string ''" | debconf-set-selections echo "jigasi jigasi/sip-password password ''" | debconf-set-selections @@ -54,7 +52,7 @@ echo "6) Japanese" echo "7) Russian" echo "8) Spanish" -read -p "Enter the number corresponding to your language choice: " lang_choice +read -p "Enter the number corresponding to your language choice: " -r lang_choice case $lang_choice in 1)