12 lines
288 B
Plaintext
12 lines
288 B
Plaintext
|
#!/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"*
|