added -m macro option
This commit is contained in:
parent
7eaef17386
commit
3ca32d6ba0
|
@ -39,7 +39,7 @@ function vhost::validate_domain () {
|
||||||
|
|
||||||
function vhost:getoptions () {
|
function vhost:getoptions () {
|
||||||
local OPTIND
|
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
|
case "${opt}" in
|
||||||
h ) # display help and exit
|
h ) # display help and exit
|
||||||
help
|
help
|
||||||
|
@ -55,7 +55,10 @@ function vhost:getoptions () {
|
||||||
i ) # User ID (UID) for new user
|
i ) # User ID (UID) for new user
|
||||||
uid=${OPTARG}
|
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
|
# e.g. could be subdomain or alias depending on the macro defined
|
||||||
option=${OPTARG}
|
option=${OPTARG}
|
||||||
;;
|
;;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user