Created
May 2, 2020 22:30
-
-
Save krithin/ff346a5f4d8a442235fbf96900ed4d36 to your computer and use it in GitHub Desktop.
Diff neded to make Jitsi's install-letsencrypt-cert.sh work on Ubuntu 20.04
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ubuntu@jitsi ~> diff ~/install-letsencypt-cert.sh.bak /usr/share/jitsi-meet/scripts/install-letsencrypt-cert.sh | |
28,39d27 | |
< if [ ! -f certbot-auto ] ; then | |
< wget https://dl.eff.org/certbot-auto | |
< chmod a+x ./certbot-auto | |
< fi | |
< | |
< CRON_FILE="/etc/cron.weekly/letsencrypt-renew" | |
< if [ ! -d "/etc/cron.weekly" ] ; then | |
< mkdir "/etc/cron.weekly" | |
< fi | |
< echo "#!/bin/bash" > $CRON_FILE | |
< echo "/usr/local/sbin/certbot-auto renew >> /var/log/le-renew.log" >> $CRON_FILE | |
< | |
54c42 | |
< ./certbot-auto certonly --noninteractive \ | |
--- | |
> certbot certonly --noninteractive \ | |
60c48 | |
< ./certbot-auto certonly --noninteractive \ | |
--- | |
> certbot certonly --noninteractive \ | |
78d65 | |
< echo "service nginx reload" >> $CRON_FILE | |
82c69 | |
< ./certbot-auto certonly --noninteractive \ | |
--- | |
> certbot certonly --noninteractive \ | |
99d85 | |
< echo "service apache2 reload" >> $CRON_FILE | |
103,104d88 | |
< # the cron file that will renew certificates | |
< chmod a+x $CRON_FILE |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment