Skip to content

Instantly share code, notes, and snippets.

@lewayotte
Last active September 8, 2019 12:26
Embed
What would you like to do?
Renew all the SSL certificates w/ Easy Engine
#!/bin/bash
for x in `/usr/local/bin/ee site list | sed -r "s/\x1B\[([0-9]{1,2}(;[0-9]{1,2})?)?[mGK]//g"`; do
/usr/local/bin/ee site update $x --le=renew
done
/usr/sbin/service nginx reload
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment