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