From 939efd4d9639cffd2f30683954ebededf314e0f1 Mon Sep 17 00:00:00 2001 From: Matthew Saunders Brown Date: Wed, 27 Apr 2022 10:18:31 -0700 Subject: [PATCH] create cgi-bin dir --- bin/vhost-cgi-wrap.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bin/vhost-cgi-wrap.sh b/bin/vhost-cgi-wrap.sh index d77ce10..4dee5ba 100755 --- a/bin/vhost-cgi-wrap.sh +++ b/bin/vhost-cgi-wrap.sh @@ -56,6 +56,10 @@ else exit 1 fi +if [[ ! -d /srv/www/$domain/cgi-bin ]]; then + install --owner=$username --group=$username --mode=755 --directory /srv/www/$domain/cgi-bin +fi + if [[ ! -d /usr/local/lib/cgi-wrap/$domain ]]; then mkdir -p /usr/local/lib/cgi-wrap/$domain fi