Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- OUT=`simp_le --email $EMAIL -f account_key.json -f fullchain.pem -f chain.pem -f key.pem \
- -d $DOMAIN \
- --default_root /var/www/fallback 2>&1` || \
- ERROR=$? && echo -e "Certificate update failed for $DOMAIN with error code $ERROR. Output:\n\n$OUT" | \
- /usr/bin/mailx -s "Certificate update" $EMAIL && \
- echo "Failed to renew :(" && \
- echo -e $OUT > last_renew.log && \
- exit $ERROR
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement