Improve SSL renew supervision

This commit is contained in:
Luis Guzmán 2019-11-20 00:48:04 -06:00
parent f904015da8
commit bb55bc0c17
Signed by: Ark74
GPG Key ID: 35AD8DB3BE2C988C
1 changed files with 2 additions and 1 deletions

View File

@ -187,6 +187,7 @@ CONF_JSON=/etc/jitsi/jibri/config.json
DIR_RECORD=/tmp/recordings DIR_RECORD=/tmp/recordings
REC_DIR=/home/jibri/finalize_recording.sh REC_DIR=/home/jibri/finalize_recording.sh
JB_NAME="Jibri Sessions" JB_NAME="Jibri Sessions"
LE_RENEW_LOG="/var/log/letsencrypt/renew.log"
echo "## Setting up Jitsi Meet language ## echo "## Setting up Jitsi Meet language ##
You can define your language by using a two letter code (ISO 639-1); You can define your language by using a two letter code (ISO 639-1);
English -> en English -> en
@ -244,7 +245,7 @@ service $1 stop
sed -i "s|/etc/jitsi/meet/$3.key|/etc/letsencrypt/live/$3/privkey.pem|" $4 sed -i "s|/etc/jitsi/meet/$3.key|/etc/letsencrypt/live/$3/privkey.pem|" $4
service $1 restart service $1 restart
#Add cron #Add cron
crontab -l | { cat; echo "@weekly certbot renew --${2}"; } | crontab - crontab -l | { cat; echo "@weekly certbot renew --${2} > $LE_RENEW_LOG 2>&1 || mail -s 'LE SSL Errors' $SYSADMIN_EMAIL < $LE_RENEW_LOG"; } | crontab -
crontab -l crontab -l
} }