add accidentaly deleted HTTPS modifications
This commit is contained in:
@@ -44,10 +44,13 @@ 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 [[ -s $PATH_TO_HTTPS_CERT ]] && [[ -s $PATH_TO_HTTPS_KEY ]]; then
|
if [[ $PATH_TO_HTTPS_CERT ]] && [[ $PATH_TO_HTTPS_KEY ]]; then
|
||||||
HTTPS=true
|
if [[ -s $PATH_TO_HTTPS_CERT ]] && [[ -s $PATH_TO_HTTPS_KEY ]]; then
|
||||||
else
|
HTTPS=true
|
||||||
HTTPS=false
|
else
|
||||||
|
HTTPS=false
|
||||||
|
HTTPSFAIL="- certificate or Key doesn't exist or file is empty"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# create logpath if doesn't exist
|
# create logpath if doesn't exist
|
||||||
@@ -842,6 +845,7 @@ else
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
echo -e "Port: ${COLOR_WHITE}$PORT${COLOR_N}"
|
echo -e "Port: ${COLOR_WHITE}$PORT${COLOR_N}"
|
||||||
|
echo -e "HTTPS: ${COLOR_WHITE}${HTTPS}${COLOR_N} ${COLOR_RED}${HTTPSFAIL}${COLOR_N}"
|
||||||
echo -e "Git Branch for source: ${COLOR_WHITE}$BRANCH${COLOR_N}"
|
echo -e "Git Branch for source: ${COLOR_WHITE}$BRANCH${COLOR_N}"
|
||||||
echo -e "Following plugins will be installed: ${COLOR_WHITE}"$PLUGINS"${COLOR_N}"
|
echo -e "Following plugins will be installed: ${COLOR_WHITE}"$PLUGINS"${COLOR_N}"
|
||||||
echo -e "Number of previous installations to preserve: ${COLOR_WHITE}$PRESERVE${COLOR_N}"
|
echo -e "Number of previous installations to preserve: ${COLOR_WHITE}$PRESERVE${COLOR_N}"
|
||||||
|
Reference in New Issue
Block a user