Last active
September 8, 2019 12:26
-
-
Save lewayotte/743b6052e60f1acdf7791b517d2f26c1 to your computer and use it in GitHub Desktop.
Renew all the SSL certificates w/ Easy Engine
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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