remove extra step from https check
This commit is contained in:
@@ -53,16 +53,11 @@ PROGRESS="[${COLOR_BLUE}..${COLOR_N}]"
|
|||||||
|
|
||||||
# Protocol to use for webserver. If both of the X.509 certificate files exist,
|
# Protocol to use for webserver. If both of the X.509 certificate files exist,
|
||||||
# then assume that we want to enable HTTPS for the server.
|
# then assume that we want to enable HTTPS for the server.
|
||||||
if [[ $PATH_TO_HTTPS_CERT ]] && [[ $PATH_TO_HTTPS_KEY ]]; then
|
if [[ -s $PATH_TO_HTTPS_CERT ]] && [[ -s $PATH_TO_HTTPS_KEY ]]; then
|
||||||
if [[ -s $PATH_TO_HTTPS_CERT ]] && [[ -s $PATH_TO_HTTPS_KEY ]]; then
|
|
||||||
HTTPS=true
|
HTTPS=true
|
||||||
else
|
|
||||||
HTTPS=false
|
|
||||||
HTTPSFAIL="- certificate or Key doesn't exist or file is empty"
|
|
||||||
fi
|
|
||||||
else
|
else
|
||||||
HTTPS=false
|
HTTPS=false
|
||||||
|
HTTPSFAIL="- certificate or Key doesn't exist or file is empty"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# create logpath if doesn't exist
|
# create logpath if doesn't exist
|
||||||
|
Reference in New Issue
Block a user