Make add prosody repo a function

Leave it out
This commit is contained in:
Luis Guzmán 2020-06-30 21:41:31 -05:00
parent 1326e1767d
commit 6646665066
1 changed files with 10 additions and 8 deletions

View File

@ -101,7 +101,15 @@ fi
var_dlim() { var_dlim() {
grep -n $1 add-jibri-node.sh|head -n1|cut -d ":" -f1 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 clear
echo ' echo '
######################################################################## ########################################################################
@ -183,13 +191,7 @@ else
done done
fi fi
#Prosody repository #Prosody repository
echo "Add Prosody repo" #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
# Jitsi-Meet Repo # Jitsi-Meet Repo
echo "Add Jitsi repo" echo "Add Jitsi repo"
if [ "$JITSI_REPO" = "unstable" ]; then if [ "$JITSI_REPO" = "unstable" ]; then