From a4b466adedaa9852d5f3b9e5d2900c3a0a9a3ac6 Mon Sep 17 00:00:00 2001 From: Ark74 Date: Sat, 2 May 2020 19:21:53 -0500 Subject: [PATCH] Tune jitsi turn proxy for nextcloud --- quick_jibri_installer.sh | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/quick_jibri_installer.sh b/quick_jibri_installer.sh index 60420c3..7a957fd 100644 --- a/quick_jibri_installer.sh +++ b/quick_jibri_installer.sh @@ -20,12 +20,13 @@ set -x fi # SYSTEM SETUP -JITSI_STBL_REPO=$(apt-cache policy | grep http | grep jitsi | grep stable | awk '{print $3}' | head -n 1 | cut -d "/" -f 1) -CERTBOT_REPO=$(apt-cache policy | grep http | grep certbot | head -n 1 | awk '{print $2}' | cut -d "/" -f 4) +JITSI_UNSTBL_REPO=$(apt-cache policy | grep http | grep jitsi | grep unstable | awk '{print $3}' | head -n 1 | cut -d "/" -f1) +CERTBOT_REPO=$(apt-cache policy | grep http | grep certbot | head -n 1 | awk '{print $2}' | cut -d "/" -f4) APACHE_2=$(dpkg-query -W -f='${Status}' apache2 2>/dev/null | grep -c "ok installed") NGINX=$(dpkg-query -W -f='${Status}' nginx 2>/dev/null | grep -c "ok installed") DIST=$(lsb_release -sc) GOOGL_REPO="/etc/apt/sources.list.d/dl_google_com_linux_chrome_deb.list" +PROSODY_REPO=$(apt-cache policy | grep http | grep prosody| awk '{print $3}' | head -n 1 | cut -d "/" -f2) if [ $DIST = flidas ]; then DIST="xenial" @@ -136,9 +137,17 @@ echo "$(lsb_release -sc), even when it's compatible and functional. We suggest to use the next (LTS) release, for longer support and security reasons." read -n 1 -s -r -p "Press any key to continue..."$'\n' fi +#Prosody repository +echo "Add Jitsi key" +if [ "$PROSODY_REPO" = "main" ]; then + echo "Prosody repository already installed" +else + echo "deb http://packages.prosody.im/debian $(lsb_release -sc) main" > /etc/apt/sources.list.d/prosody.list + wget -qO - https://prosody.im/files/prosody-debian-packages.key | apt-key add - +fi # Jitsi-Meet Repo echo "Add Jitsi key" -if [ "$JITSI_STBL_REPO" = "unstable" ]; then +if [ "$JITSI_UNSTBL_REPO" = "unstable" ]; then echo "Jitsi stable repository already installed" else echo 'deb https://download.jitsi.org unstable/' > /etc/apt/sources.list.d/jitsi-unstable.list