Browse Source

new: dev: [host] added ``$NO_DOCKER_RESTART`` variable to disable restarting docker

Signed-off-by: Valentin Lab <valentin.lab@kalysto.org>
pull/1/head
Valentin Lab 3 years ago
parent
commit
d3f9028aee
  1. 2
      precise/host/hooks/install.d/60-docker.sh
  2. 2
      precise/host/hooks/install.d/70-0k.sh

2
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

2
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

Loading…
Cancel
Save