Advertisement
Guest User

Untitled

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