Skip to content

Instantly share code, notes, and snippets.

View darkliquid's full-sized avatar

Andrew Montgomery darkliquid

View GitHub Profile
@darkliquid
darkliquid / le-renew-webroot
Last active January 30, 2016 00:52 — forked from thisismitch/le-renew-webroot
Let's Encrypt Auto-Renewal using the Webroot Plugin (Nginx) - Single renew script to support multiple configs at once
#!/bin/bash
web_service='nginx'
config_files="/usr/local/etc/letsencrypt/*.ini"
le_path='/opt/letsencrypt'
exp_limit=30;
do_reload=0;
for config_file in $config_files; do