Explorar o código

modify if else fi

tomishinets.v %!s(int64=5) %!d(string=hai) anos
pai
achega
d0fde5b79d
Modificáronse 2 ficheiros con 2 adicións e 2 borrados
  1. 1 1
      generate.sh
  2. 1 1
      renewal.sh

+ 1 - 1
generate.sh

@@ -5,7 +5,7 @@ branch="100883"
 log_file="/var/log/letsencrypt/letsencrypt.log"
 #git_url="git.sdsys.ru/sdsys/pki.git"
 
-[[ -z ${CERT_SUBDIR} ]] && exit 1
+if [[ -z ${CERT_SUBDIR} ]];then echo "variable CERT_SUBDIR doesn't set"; exit 1;fi
 
 function git_config {
               cd /${git_dir}

+ 1 - 1
renewal.sh

@@ -5,7 +5,7 @@ branch="100883"
 log_file="/var/log/letsencrypt/letsencrypt.log"
 #git_url="git.sdsys.ru/sdsys/pki.git"
 
-[[ -z ${CERT_SUBDIR} ]] && exit 1
+if [[ -z ${CERT_SUBDIR} ]];then echo "variable CERT_SUBDIR doesn't set"; exit 1;fi
 
 function mail_send {
               echo "${message}"|mail -s "Attention! Certificate status!" \