Update test.sh
This commit is contained in:
9
test.sh
9
test.sh
@@ -33,7 +33,7 @@ while [ $# -gt 0 ]; do
|
|||||||
echo ""
|
echo ""
|
||||||
echo -e "Usage: ${idsCL[Yellow]}nodemgmt newcert${idsCL[Default]} {"
|
echo -e "Usage: ${idsCL[Yellow]}nodemgmt newcert${idsCL[Default]} {"
|
||||||
width=33
|
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" " -ssl {true or false}" "(defaults to true)"
|
||||||
printf "%-${width}s- %s\n" " -type {'local' or 'proxy'}" "(defaults to local)"
|
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)"
|
printf "%-${width}s- %s\n" " -scheme {http or https}" "(required if type set to proxy)"
|
||||||
@@ -47,3 +47,10 @@ while [ $# -gt 0 ]; do
|
|||||||
done;;
|
done;;
|
||||||
|
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
if [[ ${NEW_SITE} == *","* ]]; then
|
||||||
|
IFS=,
|
||||||
|
NEW_SITES=(${NEW_SITE})
|
||||||
|
unset IFS
|
||||||
|
declare -p $NEW_SITES
|
||||||
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user