mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2025-08-04 10:05:00 +02:00
Miscellaneous cleanup / housekeeping (#1641)
This commit is contained in:
parent
ed6e3ebd30
commit
916ef571b9
10 changed files with 135 additions and 103 deletions
13
setup.sh
13
setup.sh
|
@ -100,7 +100,7 @@ function _inspect
|
|||
|
||||
function _usage
|
||||
{
|
||||
echo "${SCRIPT,,}.sh
|
||||
echo "${SCRIPT,,}.sh Bootstrapping Script
|
||||
|
||||
Usage: ${0} [-i IMAGE_NAME] [-c CONTAINER_NAME] <subcommand> <subcommand> [args]
|
||||
|
||||
|
@ -112,7 +112,9 @@ OPTIONS:
|
|||
|
||||
-c CONTAINER_NAME The name of the running container.
|
||||
|
||||
-p PATH config folder path (default: ${CDIR}/config)
|
||||
-p PATH Config folder path (default: ${CDIR}/config)
|
||||
|
||||
-h Show this help dialogue
|
||||
|
||||
SUBCOMMANDS:
|
||||
|
||||
|
@ -152,6 +154,8 @@ SUBCOMMANDS:
|
|||
${0} debug inspect
|
||||
${0} debug login <commands>
|
||||
|
||||
help: Show this help dialogue
|
||||
|
||||
"
|
||||
}
|
||||
|
||||
|
@ -236,7 +240,7 @@ function _main
|
|||
fi
|
||||
|
||||
local OPTIND
|
||||
while getopts ":c:i:p:" OPT
|
||||
while getopts ":c:i:p:h" OPT
|
||||
do
|
||||
case ${OPT} in
|
||||
c) CONTAINER_NAME="${OPTARG}" ; USE_CONTAINER=true ;; # container specified, connect to running instance
|
||||
|
@ -254,6 +258,7 @@ function _main
|
|||
exit 40
|
||||
fi
|
||||
;;
|
||||
h) _usage ; return ;;
|
||||
*) echo "Invalid option: -${OPTARG}" >&2 ;;
|
||||
esac
|
||||
done
|
||||
|
@ -339,6 +344,8 @@ function _main
|
|||
esac
|
||||
;;
|
||||
|
||||
help) _usage ;;
|
||||
|
||||
* ) _usage ; _unset_vars ; exit 1 ;;
|
||||
esac
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue