Don't accidentally swallow script errors (#1052)

* Don't accidentally swallow script errors

* add docs
This commit is contained in:
Jamil
2022-10-22 08:27:02 -07:00
committed by GitHub
parent 2720200b68
commit 39d48aadb5
2 changed files with 4 additions and 1 deletions

View File

@@ -25,6 +25,8 @@ services:
ports:
- 80:80
- 443:443
# See Caddy's documentation for customizing this line
# https://caddyserver.com/docs/quick-starts/reverse-proxy
command: caddy reverse-proxy --to firezone:13000 --from ${EXTERNAL_URL:?err} ${CADDY_OPTS}
deploy:
<<: *default-deploy

View File

@@ -13,13 +13,14 @@ dockerCheck () {
dc="docker compose"
fi
set +e
$dc version | grep -q "v2"
if [ $? -ne 0 ]; then
echo "Error: Automatic installation is only supported with Docker Compose version 2 or higher."
echo "Please upgrade Docker Compose or use the manual installation method: https://docs.firezone.dev/deploy/docker"
exit 1
fi
set -e
}
curlCheck () { if ! type curl > /dev/null; then