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