From 47688134fc53000532bb320ba4a7355bef7cc8c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nils=20Norman=20Hauk=C3=A5s?= Date: Sat, 14 Jul 2018 13:58:59 +0200 Subject: [PATCH] make certbot auto-agree to TOS if NONINTERACTIVE=1 env var is set --- setup/start.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/setup/start.sh b/setup/start.sh index 86b34c8e..b13e80ca 100755 --- a/setup/start.sh +++ b/setup/start.sh @@ -139,7 +139,8 @@ echo "Mail-in-a-Box uses Let's Encrypt to provision free certificates" echo "to enable HTTPS connections to your box. You'll now be asked to agree" echo "to Let's Encrypt's terms of service." echo -certbot register --register-unsafely-without-email --config-dir $STORAGE_ROOT/ssl/lets_encrypt +certbot register $([ "$NONINTERACTIVE" == 1 ] && echo "--agree-tos") \ + --register-unsafely-without-email --config-dir $STORAGE_ROOT/ssl/lets_encrypt fi # Done.