From 1486e9efd4e8220efe9a713542c6e1361700c0c8 Mon Sep 17 00:00:00 2001 From: Matthew Saunders Brown Date: Tue, 4 Mar 2025 11:02:40 -0800 Subject: [PATCH] check for and remove cgi-wrap dir --- bin/vhost-del.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bin/vhost-del.sh b/bin/vhost-del.sh index 4fc0503..214b255 100755 --- a/bin/vhost-del.sh +++ b/bin/vhost-del.sh @@ -83,6 +83,11 @@ if [[ -d /srv/www/$domain ]]; then rm -r /srv/www/$domain fi +# remove cgi-wrapper +if [[ -d /usr/local/lib/cgi-wrap/$domain ]] + rm -r /usr/local/lib/cgi-wrap/$domain +fi + # remove webalizer stats if [[ -d /var/lib/webalizer/$domain ]]; then rm -r /var/lib/webalizer/$domain