mirror of
https://github.com/willfarrell/docker-autoheal.git
synced 2024-12-06 19:16:20 +01:00
fix issue #48
This commit is contained in:
+7
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user