This commit is contained in:
Luis Guzmán 2020-05-03 08:19:25 -05:00
commit 15c67bf309
1 changed files with 24 additions and 8 deletions

View File

@ -145,6 +145,16 @@ else
echo 'deb https://download.jitsi.org stable/' > /etc/apt/sources.list.d/jitsi-stable.list echo 'deb https://download.jitsi.org stable/' > /etc/apt/sources.list.d/jitsi-stable.list
wget -qO - https://download.jitsi.org/jitsi-key.gpg.key | apt-key add - wget -qO - https://download.jitsi.org/jitsi-key.gpg.key | apt-key add -
fi fi
#Default to LE SSL?
while [[ $LE_SSL != yes && $LE_SSL != no ]]
do
read -p "> Do you plan to use Let's Encrypt SSL certs?: (yes or no)"$'\n' -r LE_SSL
if [ $LE_SSL = yes ]; then
echo "We'll defaul to Let's Encrypt SSL cers."
elif [ $LE_SSL = no ]; then
echo "We'll let you choose later on for it."
fi
done
# Requirements # Requirements
echo "We'll start by installing system requirements this may take a while please be patient..." echo "We'll start by installing system requirements this may take a while please be patient..."
@ -169,7 +179,9 @@ echo "
# Install Jitsi Framework # Install Jitsi Framework
#-------------------------------------------------- #--------------------------------------------------
" "
if [ "$LE_SSL" = "yes" ]; then
echo "set jitsi-meet/cert-choice select Generate a new self-signed certificate (You will later get a chance to obtain a Let's encrypt certificate)" | debconf-set-selections echo "set jitsi-meet/cert-choice select Generate a new self-signed certificate (You will later get a chance to obtain a Let's encrypt certificate)" | debconf-set-selections
fi
apt-get -y install \ apt-get -y install \
jitsi-meet \ jitsi-meet \
jibri \ jibri \
@ -288,15 +300,19 @@ elif [ $DROP_TLS1 = yes ]; then
fi fi
done done
#SSL LE #SSL LE
while [[ $ENABLE_SSL != yes && $ENABLE_SSL != no ]] if [ "$LE_SSL" = "yes" ]; then
do ENABLE_SSL=yes
read -p "> Do you want to setup LetsEncrypt with your domain: (yes or no)"$'\n' -r ENABLE_SSL else
if [ $ENABLE_SSL = no ]; then while [[ $ENABLE_SSL != yes && $ENABLE_SSL != no ]]
echo "Please run letsencrypt.sh manually post-installation." do
elif [ $ENABLE_SSL = yes ]; then read -p "> Do you want to setup LetsEncrypt with your domain: (yes or no)"$'\n' -r ENABLE_SSL
echo "SSL will be enabled." if [ $ENABLE_SSL = no ]; then
echo "Please run letsencrypt.sh manually post-installation."
elif [ $ENABLE_SSL = yes ]; then
echo "SSL will be enabled."
fi
done
fi fi
done
#Dropbox #Dropbox
while [[ $ENABLE_DB != yes && $ENABLE_DB != no ]] while [[ $ENABLE_DB != yes && $ENABLE_DB != no ]]
do do