mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2026-07-03 12:38:58 +02:00
make certbot auto-agree to TOS if NONINTERACTIVE=1 env var is set
This commit is contained in:
@@ -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 enable HTTPS connections to your box. You'll now be asked to agree"
|
||||||
echo "to Let's Encrypt's terms of service."
|
echo "to Let's Encrypt's terms of service."
|
||||||
echo
|
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
|
fi
|
||||||
|
|
||||||
# Done.
|
# Done.
|
||||||
|
|||||||
Reference in New Issue
Block a user