From 74ca825cac8f87e031b5bc1d2433642fbdbc5363 Mon Sep 17 00:00:00 2001 From: Hu Xiaohong Date: Wed, 8 May 2024 14:10:10 +0800 Subject: [PATCH] fix entrypoin script --- docker-entrypoint.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh index 4a03aab..548b172 100755 --- a/docker-entrypoint.sh +++ b/docker-entrypoint.sh @@ -147,15 +147,17 @@ if [ ! -f "/etc/ocserv/server.cert" ] && [ ! -f "/etc/letsencrypt/live/$DOMAIN/f -d $DOMAIN \ --email $EMAIL \ --non-interactive --agree-tos + fi else if [[ -z $EMAIL ]]; then certbot certonly --standalone --non-interactive --agree-tos \ -d $DOMAIN \ - --register-unsafely-without-email \ + --register-unsafely-without-email else certbot certonly --standalone --non-interactive --agree-tos \ -d $DOMAIN \ - --email $EMAIL \ + --email $EMAIL + fi fi cron_file="/var/spool/cron/crontabs/root"