From d3f9028aeec69809c865bd42d5d4eba5c1273a44 Mon Sep 17 00:00:00 2001 From: Valentin Lab Date: Mon, 12 Apr 2021 13:50:06 +0200 Subject: [PATCH] new: dev: [host] added ``$NO_DOCKER_RESTART`` variable to disable restarting docker Signed-off-by: Valentin Lab --- precise/host/hooks/install.d/60-docker.sh | 2 +- precise/host/hooks/install.d/70-0k.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/precise/host/hooks/install.d/60-docker.sh b/precise/host/hooks/install.d/60-docker.sh index 885c449..4688e45 100755 --- a/precise/host/hooks/install.d/60-docker.sh +++ b/precise/host/hooks/install.d/60-docker.sh @@ -25,7 +25,7 @@ if [ -n "$just_installed" ]; then need_restart=true fi - if [ "$need_restart" ]; then + if [ -n "$need_restart" ] && [ -z "$NO_DOCKER_RESTART" ]; then systemctl daemon-reload && service docker restart fi diff --git a/precise/host/hooks/install.d/70-0k.sh b/precise/host/hooks/install.d/70-0k.sh index f608833..1be1734 100755 --- a/precise/host/hooks/install.d/70-0k.sh +++ b/precise/host/hooks/install.d/70-0k.sh @@ -195,7 +195,7 @@ if ! [ -L "$ca_ln" ] || [ "$(realpath "$ca_ln")" != "$ca" ] ; then need_restart=1 fi -if [ "$need_restart" ]; then +if [ -n "$need_restart" ] && [ -z "$NO_DOCKER_RESTART" ]; then service docker restart fi