From ab84fc5c35c491baf45c1e068235b03da4bb3cfc Mon Sep 17 00:00:00 2001 From: nukedupe Date: Fri, 16 Apr 2021 01:26:02 +0200 Subject: [PATCH] fix issue #48 --- docker-entrypoint | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/docker-entrypoint b/docker-entrypoint index 96b494f..280bbbd 100755 --- a/docker-entrypoint +++ b/docker-entrypoint @@ -64,7 +64,13 @@ term_handler() { # shellcheck disable=2039 trap 'kill $$; term_handler' SIGTERM -if [ "$1" = "autoheal" ] && [ -e "$DOCKER_SOCK" ];then +if [ "$1" = "autoheal" ] ++then + if [ -n "$UNIX_SOCK" ] && ! [ -S "$DOCKER_SOCK" ] + then + echo "Connection problem" + exit + fi # Delayed startup if [ "$AUTOHEAL_START_PERIOD" -gt 0 ] then