added -m macro option

This commit is contained in:
Matthew Saunders Brown 2021-10-05 13:08:28 -07:00
parent 7eaef17386
commit 3ca32d6ba0

View File

@ -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}
;;