From 6646665066cf0ee3c728b6f397fa98f5d8e89ee8 Mon Sep 17 00:00:00 2001 From: Luis Guzman Date: Tue, 30 Jun 2020 21:41:31 -0500 Subject: [PATCH] Make add prosody repo a function Leave it out --- quick_jibri_installer.sh | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/quick_jibri_installer.sh b/quick_jibri_installer.sh index 5bb9b35..1978850 100644 --- a/quick_jibri_installer.sh +++ b/quick_jibri_installer.sh @@ -101,7 +101,15 @@ fi var_dlim() { grep -n $1 add-jibri-node.sh|head -n1|cut -d ":" -f1 } - +add_prosody_repo() { +echo "Add Prosody repo" +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 +} clear echo ' ######################################################################## @@ -183,13 +191,7 @@ else done fi #Prosody repository -echo "Add Prosody repo" -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 +#add_prosody_repo # Jitsi-Meet Repo echo "Add Jitsi repo" if [ "$JITSI_REPO" = "unstable" ]; then