diff --git a/precise/host/hooks/install.d/60-docker.sh b/precise/host/hooks/install.d/60-docker.sh index 885c4490..4688e45d 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 f6088334..1be17343 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