certbot-scrypts/own/ssl_del-domain

12 lines
288 B
Plaintext
Raw Permalink Normal View History

2018-05-07 20:25:38 +00:00
#!/bin/bash
domain=$1
[ -f ./ssl_confs/"$domain".conf ] || { echo not found; exit 1; }
rm ./ssl_confs/"$domain".conf
lxc-attach -n c_proxy -- rm -R /etc/letsencrypt/live/"$domain"/
lxc-attach -n c_proxy -- rm -R /etc/letsencrypt/archive/"$domain"/
rm ./nginx/sites-enabled/"$domain"*