Skip to content

Instantly share code, notes, and snippets.

@krithin
Created May 2, 2020 22:30
Show Gist options
  • Save krithin/ff346a5f4d8a442235fbf96900ed4d36 to your computer and use it in GitHub Desktop.
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
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