diff options
author | Konstantin Pavlov <thresh@nginx.com> | 2023-04-12 16:00:32 -0700 |
---|---|---|
committer | Konstantin Pavlov <thresh@nginx.com> | 2023-04-12 16:00:32 -0700 |
commit | 86a701abe0ca0ac1449976295fe28ea82d6c1f8c (patch) | |
tree | 6519686abfa4680081bdd809f9524c4f9f43d75c | |
parent | 1a485fed6a8353ecc09e6c0f050e44c0a2d30419 (diff) | |
download | unit-86a701abe0ca0ac1449976295fe28ea82d6c1f8c.tar.gz unit-86a701abe0ca0ac1449976295fe28ea82d6c1f8c.tar.bz2 |
Docker: made curl fail with non-zero exit code on server errors.
-rwxr-xr-x | pkg/docker/docker-entrypoint.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/docker/docker-entrypoint.sh b/pkg/docker/docker-entrypoint.sh index e0afd7ea..4d16bdc5 100755 --- a/pkg/docker/docker-entrypoint.sh +++ b/pkg/docker/docker-entrypoint.sh @@ -39,7 +39,7 @@ if [ "$1" = "unitd" ] || [ "$1" = "unitd-debug" ]; then done # even when the control socket exists, it does not mean unit has finished initialisation # this curl call will get a reply once unit is fully launched - /usr/bin/curl -s -X GET --unix-socket /var/run/control.unit.sock http://localhost/ + /usr/bin/curl -f -s -X GET --unix-socket /var/run/control.unit.sock http://localhost/ echo "$0: Looking for certificate bundles in /docker-entrypoint.d/..." for f in $(/usr/bin/find /docker-entrypoint.d/ -type f -name "*.pem"); do |