Jelajahi Sumber

добавил set +e

tomishinets.v 5 tahun lalu
induk
melakukan
dba5ab9774
1 mengubah file dengan 2 tambahan dan 1 penghapusan
  1. 2 1
      renewal.sh

+ 2 - 1
renewal.sh

@@ -17,6 +17,7 @@ if [[ -z ${CERT_SUBDIR} ]];then echo "variable CERT_SUBDIR doesn't set"; exit 1;
 
 
 mail_send() {
+                set +e
                 echo "$1"|mail -s "Attention! Certificate renewal status!" \
                 -S smtp=${SMTP_SERVER} \
                 -S smtp-use-starttls \
@@ -27,7 +28,7 @@ mail_send() {
                 -S nss-config-dir=/etc/pki/nssdb \
                 -S from=${JENKINS_MAIL_USER} \
                 -a ${LOG_FILE} \
-                ${RECIPIENT_MAIL_BOX} | cat -
+                ${RECIPIENT_MAIL_BOX}
 }
 
 git_config() {