Update nodemgmt-scripts.sh
This commit is contained in:
@@ -69,25 +69,25 @@ case "$1" in
|
|||||||
|
|
||||||
;;
|
;;
|
||||||
newsite)
|
newsite)
|
||||||
while getopts ':d:t:s:S:H:P:' flag; do
|
while [ $# -gt 0 ]; do
|
||||||
case "${flag}" in
|
case "${1}" in
|
||||||
d) NEW_SITE=$OPTARG ;;
|
-site) NEW_SITE=${2} ;;
|
||||||
t) SITE_TYPE=$OPTARG ;;
|
-type) SITE_TYPE=${2} ;;
|
||||||
s) CREATE_SSL=$OPTARG ;;
|
-ssl) CREATE_SSL=${2} ;;
|
||||||
S) PROXYSCHEME=$OPTARG ;;
|
-scheme) PROXYSCHEME=${2} ;;
|
||||||
H) PROXYHOST=$OPTARG ;;
|
-host) PROXYHOST=${2} ;;
|
||||||
P) PROXYPORT=$OPTARG ;;
|
-port) PROXYPORT=${2} ;;
|
||||||
:)
|
:)
|
||||||
echo "Invalid option: '${OPTARG}' requires an argument" 1>&2
|
echo "Invalid option: '${OPTARG}' requires an argument" 1>&2
|
||||||
echo ""
|
echo ""
|
||||||
echo -e "Usage: ${idsCL[Yellow]}nodemgmt newcert${idsCL[Default]} {"
|
echo -e "Usage: ${idsCL[Yellow]}nodemgmt newcert${idsCL[Default]} {"
|
||||||
width=36
|
width=36
|
||||||
printf "%-${width}s: %s\n" " -d {FQDN address}" "(*required)"
|
printf "%-${width}s: %s\n" " -site {FQDN address}" "(*required)"
|
||||||
printf "%-${width}s: %s\n" " -s {true or false}" "(defaults to true)"
|
printf "%-${width}s: %s\n" " -ssl {true or false}" "(defaults to true)"
|
||||||
printf "%-${width}s: %s\n" " -t {'local' or 'proxy'}" "(defaults to local)"
|
printf "%-${width}s: %s\n" " -type {'local' or 'proxy'}" "(defaults to local)"
|
||||||
printf "%-${width}s: %s\n" " -S {http or https}" "(required if type set to proxy)"
|
printf "%-${width}s: %s\n" " -scheme {http or https}" "(required if type set to proxy)"
|
||||||
printf "%-${width}s: %s\n" " -H {IP or FQDN}" "(required if type set to proxy)"
|
printf "%-${width}s: %s\n" " -host {IP or FQDN}" "(required if type set to proxy)"
|
||||||
printf "%-${width}s: %s\n" " -P {host port}" "(required if type set to proxy)"
|
printf "%-${width}s: %s\n" " -port {host port}" "(required if type set to proxy)"
|
||||||
echo "}"
|
echo "}"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|||||||
Reference in New Issue
Block a user