Update nodemgmt-scripts.sh
This commit is contained in:
@@ -69,7 +69,7 @@ case "$1" in
|
|||||||
|
|
||||||
;;
|
;;
|
||||||
newsite)
|
newsite)
|
||||||
while getopts ':site:type:ssl:proxy_scheme:proxy_host:proxy_port:' flag; do
|
while getopts ':d:t:s:S:H:P:' flag; do
|
||||||
case "${flag}" in
|
case "${flag}" in
|
||||||
d) NEW_SITE=$OPTARG ;;
|
d) NEW_SITE=$OPTARG ;;
|
||||||
t) SITE_TYPE=$OPTARG ;;
|
t) SITE_TYPE=$OPTARG ;;
|
||||||
@@ -80,7 +80,15 @@ case "$1" in
|
|||||||
:)
|
:)
|
||||||
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]} { ${idsCL[Yellow]}-site${idsCL[Default]} {domain address} | ${idsCL[Yellow]}-type${idsCL[Default]} {'local' or 'proxy'} | ${idsCL[ Yellow]}-ssl${idsCL[Default]} {true or false} | ${idsCL[Yellow]}certrenew${idsCL[Default]} | ${idsCL[ Yellow]}-proxy_scheme${idsCL[Default]} {http or https} | ${idsCL[ Yellow]}-proxy_host${idsCL[Default]} {IP or FQDN} | ${idsCL[ Yellow]}-proxy_port${idsCL[Default]} {host port} }"
|
echo -e "Usage: ${idsCL[Yellow]}nodemgmt newcert${idsCL[Default]} {"
|
||||||
|
width=36
|
||||||
|
printf "%-${width}s: %s\n" " -d {FQDN address}" "(*required)"
|
||||||
|
printf "%-${width}s: %s\n" " -s {true or false}" "(defaults to true)"
|
||||||
|
printf "%-${width}s: %s\n" " -t {'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" " -H {IP or FQDN}" "(required if type set to proxy)"
|
||||||
|
printf "%-${width}s: %s\n" " -P {host port}" "(required if type set to proxy)"
|
||||||
|
echo "}"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
@@ -186,8 +194,8 @@ case "$1" in
|
|||||||
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" " -d {FQDN address}" "(*required)"
|
||||||
printf "%-${width}s: %s\n" " -t {'local' or 'proxy'}" "(defaults to local)"
|
|
||||||
printf "%-${width}s: %s\n" " -s {true or false}" "(defaults to true)"
|
printf "%-${width}s: %s\n" " -s {true or false}" "(defaults to true)"
|
||||||
|
printf "%-${width}s: %s\n" " -t {'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" " -S {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" " -H {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" " -P {host port}" "(required if type set to proxy)"
|
||||||
|
|||||||
Reference in New Issue
Block a user