From 3ca32d6ba0199cefcb9771554ce3b58f7fb72791 Mon Sep 17 00:00:00 2001 From: Matthew Saunders Brown Date: Tue, 5 Oct 2021 13:08:28 -0700 Subject: [PATCH] added -m macro option --- bin/vhost.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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} ;;