Skip to content

Instantly share code, notes, and snippets.

@lewayotte
Last active September 8, 2019 12:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lewayotte/743b6052e60f1acdf7791b517d2f26c1 to your computer and use it in GitHub Desktop.
Save lewayotte/743b6052e60f1acdf7791b517d2f26c1 to your computer and use it in GitHub Desktop.
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