Update nodemgmt-scripts.sh
This commit is contained in:
@@ -71,12 +71,12 @@ case "$1" in
|
|||||||
newsite)
|
newsite)
|
||||||
while getopts ':site:type:ssl:proxy_scheme:proxy_host:proxy_port:' flag; do
|
while getopts ':site:type:ssl:proxy_scheme:proxy_host:proxy_port:' flag; do
|
||||||
case "${flag}" in
|
case "${flag}" in
|
||||||
site) NEW_SITE=$OPTARG ;;
|
d) NEW_SITE=$OPTARG ;;
|
||||||
type) SITE_TYPE=$OPTARG ;;
|
t) SITE_TYPE=$OPTARG ;;
|
||||||
ssl) CREATE_SSL=$OPTARG ;;
|
s) CREATE_SSL=$OPTARG ;;
|
||||||
proxy_scheme) PROXYSCHEME=$OPTARG ;;
|
S) PROXYSCHEME=$OPTARG ;;
|
||||||
proxy_host) PROXYHOST=$OPTARG ;;
|
H) PROXYHOST=$OPTARG ;;
|
||||||
proxy_port) PROXYPORT=$OPTARG ;;
|
P) PROXYPORT=$OPTARG ;;
|
||||||
:)
|
:)
|
||||||
echo "Invalid option: '${OPTARG}' requires an argument" 1>&2
|
echo "Invalid option: '${OPTARG}' requires an argument" 1>&2
|
||||||
echo ""
|
echo ""
|
||||||
@@ -185,12 +185,12 @@ case "$1" in
|
|||||||
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" " -site {FQDN address}" "(*required)"
|
printf "%-${width}s: %s\n" " -d {FQDN address}" "(*required)"
|
||||||
printf "%-${width}s: %s\n" " -type {'local' or 'proxy'}" "(defaults to local)"
|
printf "%-${width}s: %s\n" " -t {'local' or 'proxy'}" "(defaults to local)"
|
||||||
printf "%-${width}s: %s\n" " -ssl {true or false}" "(defaults to true)"
|
printf "%-${width}s: %s\n" " -s {true or false}" "(defaults to true)"
|
||||||
printf "%-${width}s: %s\n" " -proxy_scheme {http or https}" "(required if type set to proxy)"
|
printf "%-${width}s: %s\n" " -S {http or https}" "(required if type set to proxy)"
|
||||||
printf "%-${width}s: %s\n" " -proxy_host {IP or FQDN}" "(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" " -proxy_port {host port}" "(required if type set to proxy)"
|
printf "%-${width}s: %s\n" " -P {host port}" "(required if type set to proxy)"
|
||||||
echo "}"
|
echo "}"
|
||||||
fi
|
fi
|
||||||
exit 1
|
exit 1
|
||||||
|
|||||||
Reference in New Issue
Block a user