Merge pull request #424 from EugenMayer/issues/health-check-set-e

Add set -e to healthcheck.sh fixes #418
This commit is contained in:
André Germann
2024-01-07 22:22:49 +01:00
committed by GitHub
2 changed files with 6 additions and 1 deletions

View File

@@ -1,7 +1,9 @@
#!/bin/bash
# Script checks health of running container
# bash strict mode
set -e
if [ "$(cat /opt/scripts/.docker_config/.healthcheck)" == "starting" ]
then
echo "Health status: OK - Startup script is still running."

View File

@@ -2,6 +2,9 @@
# Script checks health of running container
# bash strict mode
set -e
if [ "$(cat /opt/.docker_config/.healthcheck)" == "starting" ]
then
echo "Health status: OK - Startup script is still running."