This commit is contained in:
nukedupe
2021-04-16 01:26:02 +02:00
parent 50de4c7688
commit ab84fc5c35
+7 -1
View File
@@ -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