Update test.sh
This commit is contained in:
14
test.sh
14
test.sh
@@ -20,19 +20,19 @@ fi
|
||||
|
||||
#while getopts ':d:t:s:S:H:P:' flag; do
|
||||
while [ $# -gt 0 ]; do
|
||||
case "${1}" in
|
||||
case "$1" in
|
||||
-d) NEW_SITE=${2}; echo "NEW_SITE - ${NEW_SITE}" ;;
|
||||
-t) SITE_TYPE=${2}; echo "SITE_TYPE - ${SITE_TYPE}" ;;
|
||||
-s) CREATE_SSL=${2}; echo "CREATE_SSL - ${CREATE_SSL}" ;;
|
||||
-S) PROXYSCHEME=${2}; echo "PROXYSCHEME - ${PROXYSCHEME}" ;;
|
||||
-H) PROXYHOST=${2}; echo "PROXYHOST - ${PROXYHOST}" ;;
|
||||
-P) PROXYPORT=${2}; echo "PROXYPORT - ${PROXYPORT}" ;;
|
||||
-*)
|
||||
echo "Invalid option: '${OPTARG}' requires an argument" 1>&2
|
||||
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} }"
|
||||
exit 1;;
|
||||
*) break;;
|
||||
#-*)
|
||||
# echo "Invalid option: '${OPTARG}' requires an argument" 1>&2
|
||||
# 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} }"
|
||||
# exit 1;;
|
||||
#*) break;;
|
||||
esac
|
||||
shift
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user