remove matching letsencrypt folder when deleting an account

This commit is contained in:
Nicolas Roman 2019-07-24 16:25:16 +02:00
parent b339ca0fb9
commit 5cd4cff029

View file

@ -765,6 +765,11 @@ op_del() {
sed -i.bak "/-config=$login/d" /etc/cron.d/awstats
nginx -t
fi
if [ -d /etc/letsencrypt/"$login" ]; then
rm -r /etc/letsencrypt/"$login"
fi
set +x
if [ -n "$dbname" ]; then