mirror of
https://github.com/buanet/ioBroker.docker.git
synced 2025-12-17 10:29:00 +02:00
Merge pull request #424 from EugenMayer/issues/health-check-set-e
Add set -e to healthcheck.sh fixes #418
This commit is contained in:
@@ -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."
|
||||
|
||||
@@ -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."
|
||||
|
||||
Reference in New Issue
Block a user