Browse Source

bugfix of issue 45, problem with SERVER_TYPE when it's just a port number

pull/52/head
srvrco 10 years ago
parent
commit
961db96b83
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      getssl

+ 3
- 2
getssl View File

@ -66,10 +66,11 @@
# 2016-06-03 Version 1.0 of code for release (1.00)
# 2016-06-09 bugfix of issue 44, and add success statement (ignoring quiet flag) (1.01)
# 2016-06-13 test return status of DNS_ADD_COMMAND and error_exit if a problem (hadleyrich) (1.02)
# 2016-06-13 bugfix of issue 45, problem with SERVER_TYPE when it's just a port number (1.03)
# ---------------------------------------------------------------------------
PROGNAME=${0##*/}
VERSION="1.02"
VERSION="1.03"
# defaults
CODE_LOCATION="https://raw.githubusercontent.com/srvrco/getssl/master/getssl"
@ -710,7 +711,7 @@ if [[ ${SERVER_TYPE} == "webserver" ]]; then
elif [[ ${SERVER_TYPE} == "ldaps" ]]; then
REMOTE_PORT=636
elif [[ ${SERVER_TYPE} =~ ^[0-9]+$ ]]; then
REMOTE_PORT=SERVER_TYPE
REMOTE_PORT=${SERVER_TYPE}
else
error_exit "unknown server type"
fi


Loading…
Cancel
Save