diff --git a/bin/vhost.sh b/bin/vhost.sh index 00b9318..1089684 100755 --- a/bin/vhost.sh +++ b/bin/vhost.sh @@ -39,7 +39,7 @@ function vhost::validate_domain () { function vhost:getoptions () { local OPTIND - while getopts "d:i:o:p:u:jhnvw" opt ; do + while getopts "d:i:m:o:p:u:jhnvw" opt ; do case "${opt}" in h ) # display help and exit help @@ -55,7 +55,10 @@ function vhost:getoptions () { i ) # User ID (UID) for new user uid=${OPTARG} ;; - i ) # option - usually applied to previously specified variable + m ) # macro - Apache mod_macro name + macro=${OPTARG} + ;; + o ) # option - usually applied to previously specified variable # e.g. could be subdomain or alias depending on the macro defined option=${OPTARG} ;;