Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
TypeScript debiandeep-videojitsijitsi-meetscalable-video-conferencessfuvideovideo-communicationvideo-conferencingwebrtc
misc: replace certbot-auto with certbot
Elliot Cooperb814827df1da
diff --git a/resources/install-letsencrypt-cert.sh b/resources/install-letsencrypt-cert.shindex f957b6af60..29c114b1b5 100755--- a/resources/install-letsencrypt-cert.sh+++ b/resources/install-letsencrypt-cert.sh@@ -23,11 +23,32 @@ echo "by providing an email address for important account notifications"echo -n "Enter your email and press [ENTER]: "read EMAIL-cd /usr/local/sbin--if [ ! -f certbot-auto ] ; then- wget https://dl.eff.org/certbot-auto- chmod a+x ./certbot-auto+if [ ! -x "$(command -v certbot)" ] ; then+ DISTRO=$(lsb_release -is)+ DISTRO_VERSION=$(lsb_release -rs)+ if [ "$DISTRO" = "Debian" ]; then+ apt-get update+ apt-get -y install certbot+ elif [ "$DISTRO" = "Ubuntu" ]; then+ if [ "$DISTRO_VERSION" = "20.04" ] || [ "$DISTRO_VERSION" = "19.10" ]; then+ apt-get update+ apt-get -y install software-properties-common+ add-apt-repository -y universe+ apt-get update+ apt-get -y install certbot+ elif [ "$DISTRO_VERSION" = "18.04" ]; then+ apt-get update+ apt-get -y install software-properties-common+ add-apt-repository -y universe+ add-apt-repository -y ppa:certbot/certbot+ apt-get update+ apt-get -y install certbot+ fi+ else+ echo "$DISTRO $DISTRO_VERSION is not supported"+ echo "Only Debian 9,10 and Ubuntu 18.04,19.10,20.04 are supported"+ exit 1+ fifiCRON_FILE="/etc/cron.weekly/letsencrypt-renew"@@ -35,7 +56,7 @@ if [ ! -d "/etc/cron.weekly" ] ; thenmkdir "/etc/cron.weekly"fiecho "#!/bin/bash" > $CRON_FILE-echo "/usr/local/sbin/certbot-auto renew >> /var/log/le-renew.log" >> $CRON_FILE+echo "/usr/bin/certbot renew >> /var/log/le-renew.log" >> $CRON_FILECERT_KEY="/etc/letsencrypt/live/$DOMAIN/privkey.pem"CERT_CRT="/etc/letsencrypt/live/$DOMAIN/fullchain.pem"@@ -51,13 +72,13 @@ if [ -f /etc/nginx/sites-enabled/$DOMAIN.conf ] ; thenchmod u+x $TURN_HOOKsed -i "s/jitsi-meet.example.com/$DOMAIN/g" $TURN_HOOK- ./certbot-auto certonly --noninteractive \+ /usr/bin/certbot certonly --noninteractive \--webroot --webroot-path /usr/share/jitsi-meet \-d $DOMAIN \--agree-tos --email $EMAIL \--deploy-hook $TURN_HOOKelse- ./certbot-auto certonly --noninteractive \+ /usr/bin/certbot certonly --noninteractive \--webroot --webroot-path /usr/share/jitsi-meet \-d $DOMAIN \--agree-tos --email $EMAIL@@ -79,7 +100,7 @@ if [ -f /etc/nginx/sites-enabled/$DOMAIN.conf ] ; thenservice nginx reloadelif [ -f /etc/apache2/sites-enabled/$DOMAIN.conf ] ; then- ./certbot-auto certonly --noninteractive \+ /usr/bin/certbot certonly --noninteractive \--webroot --webroot-path /usr/share/jitsi-meet \-d $DOMAIN \--agree-tos --email $EMAIL