mirror of
https://blitiri.com.ar/repos/chasquid
synced 2026-02-02 21:45:55 +00:00
docker: Add $SKIP_CERT_CHECK for debugging
When running the container, there is a check to make sure we have at least one certificate. This is very useful to detect a common problem early, with a friendly error message. However, when debugging, sometimes we want to skip that check and run anyways. So this patch introduces a $SKIP_CERT_CHECK variable that can be used to skip that check.
This commit is contained in:
@@ -65,7 +65,8 @@ done
|
|||||||
ONE_DOMAIN=$D
|
ONE_DOMAIN=$D
|
||||||
|
|
||||||
# Check that there's at least once certificate at this point.
|
# Check that there's at least once certificate at this point.
|
||||||
if [ "$CERT_DOMAINS" == "" ]; then
|
# Use $SKIP_CERT_CHECK=1 to bypass this check for debugging purposes.
|
||||||
|
if [ "$CERT_DOMAINS" == "" ] && [ "$SKIP_CERT_CHECK" != "1" ]; then
|
||||||
echo "No certificates found."
|
echo "No certificates found."
|
||||||
echo
|
echo
|
||||||
echo "Set AUTO_CERTS='example.com' to automatically get one."
|
echo "Set AUTO_CERTS='example.com' to automatically get one."
|
||||||
|
|||||||
Reference in New Issue
Block a user