Explorar o código

Enable dry-run. See Redmine 119111

Владимир Томишинец %!s(int64=5) %!d(string=hai) anos
pai
achega
04946ec92f
Modificáronse 1 ficheiros con 3 adicións e 3 borrados
  1. 3 3
      renewal.sh

+ 3 - 3
renewal.sh

@@ -52,9 +52,9 @@ echo "Delete /${git_dir}"
 echo "Git clone ${GIT_URL}"
 cd / && git clone https://${GIT_USER}:$(cat /run/secrets/provision-pass)@${GIT_URL} && cd /${git_dir} && git checkout ${branch}
 
-#certbot renew --dry-run --config-dir /${git_dir}/letsencrypt
-#if [ $? -ne 0 ];then message="letsencrypt. Can't execute "dry-run" renew procces. Renew certs and keys will be skipped!!!"; mail_send; exit 1;fi
-#clear_log
+certbot renew --dry-run --config-dir /${git_dir}/letsencrypt
+if [ $? -ne 0 ];then message="letsencrypt. Can't execute "dry-run" renew procces. Renew certs and keys will be skipped!!!"; mail_send; exit 1;fi
+clear_log
 
 echo "Renewal certs and keys"
 certbot renew --config-dir /${git_dir}/${CERT_SUBDIR}/letsencrypt >> ${LOG_FILE} 2>&1