Update test.sh

This commit is contained in:
2019-02-01 20:45:24 -06:00
parent 7c8be4e7d2
commit 95cc5916d2

View File

@@ -33,7 +33,7 @@ while [ $# -gt 0 ]; do
echo ""
echo -e "Usage: ${idsCL[Yellow]}nodemgmt newcert${idsCL[Default]} {"
width=33
printf "%-${width}s- %s\n" " -site {FQDN address}" "(*required)"
printf "%-${width}s- %s\n" " -site {FQDN address(,es)}" "(*required)"
printf "%-${width}s- %s\n" " -ssl {true or false}" "(defaults to true)"
printf "%-${width}s- %s\n" " -type {'local' or 'proxy'}" "(defaults to local)"
printf "%-${width}s- %s\n" " -scheme {http or https}" "(required if type set to proxy)"
@@ -47,3 +47,10 @@ while [ $# -gt 0 ]; do
done;;
esac
if [[ ${NEW_SITE} == *","* ]]; then
IFS=,
NEW_SITES=(${NEW_SITE})
unset IFS
declare -p $NEW_SITES
fi