Skip to content

Commit

Permalink
fix entrypoin script
Browse files Browse the repository at this point in the history
  • Loading branch information
PandaRyshan committed May 8, 2024
1 parent 936fec6 commit 74ca825
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 74ca825

Please sign in to comment.