Skip to content

Instantly share code, notes, and snippets.

View bartjkdp's full-sized avatar

Bart bartjkdp

View GitHub Profile
@bartjkdp
bartjkdp / le-renew-webroot
Last active February 9, 2016 14:40 — forked from thisismitch/le-renew-webroot
Let's Encrypt Auto-Renewal using the Webroot Plugin (Nginx)
#!/bin/bash
web_service='nginx'
config_file="/usr/local/etc/le-renew-webroot.ini"
le_path='/opt/letsencrypt'
exp_limit=30;
if [ ! -f $config_file ]; then
echo "[ERROR] config file does not exist: $config_file"