From b290a5335b4cb5342bc1226b98b07b0f6f6bdd5d Mon Sep 17 00:00:00 2001 From: ronivay Date: Mon, 3 May 2021 14:19:56 +0300 Subject: [PATCH] remove extra step from https check --- xo-install.sh | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/xo-install.sh b/xo-install.sh index 9858b22..40a3f07 100755 --- a/xo-install.sh +++ b/xo-install.sh @@ -53,16 +53,11 @@ PROGRESS="[${COLOR_BLUE}..${COLOR_N}]" # 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. -if [[ $PATH_TO_HTTPS_CERT ]] && [[ $PATH_TO_HTTPS_KEY ]]; then - if [[ -s $PATH_TO_HTTPS_CERT ]] && [[ -s $PATH_TO_HTTPS_KEY ]]; then - HTTPS=true - else - HTTPS=false - HTTPSFAIL="- certificate or Key doesn't exist or file is empty" - fi +if [[ -s $PATH_TO_HTTPS_CERT ]] && [[ -s $PATH_TO_HTTPS_KEY ]]; then + HTTPS=true else HTTPS=false - + HTTPSFAIL="- certificate or Key doesn't exist or file is empty" fi # create logpath if doesn't exist