Skip to content

Commit

Permalink
Fix Docker restart short-circuit
Browse files Browse the repository at this point in the history
  • Loading branch information
xmudrii committed Jan 22, 2019
1 parent 1176c09 commit 1f81b96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/installer/installation/prerequisites.go
Original file line number Diff line number Diff line change
Expand Up @@ -292,5 +292,5 @@ cat <<EOF |sudo tee /etc/systemd/system/docker.service.d/http-proxy.conf
Environment={{ if .HTTP_PROXY }}"HTTP_PROXY={{ .HTTP_PROXY }}" {{ end }}{{ if .HTTPS_PROXY }}"HTTPS_PROXY={{ .HTTPS_PROXY }}" {{ end }}{{ if .NO_PROXY }}"NO_PROXY={{ .NO_PROXY }}"{{ end }}
EOF
sudo systemctl daemon-reload
sudo systemctl status docker && sudo systemctl restart docker
if sudo systemctl status docker &>/dev/null; then sudo systemctl restart docker; fi
`

0 comments on commit 1f81b96

Please sign in to comment.