diff --git a/createVhosts.sh b/createVhosts.sh index c3461cc..1e43c00 100755 --- a/createVhosts.sh +++ b/createVhosts.sh @@ -48,6 +48,9 @@ else exit 1 fi +# gain priviledges +become "$@" + OPTS=$(getopt -o h -l domain:,root:,backend:,listenip:,desc:,donotredirect -n 'createVhosts' -- "$@") if [ "$?" -gt '0' ]; then echo 'Failed to set command line arguments'