summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2020-08-26 17:04:16 -0700
committergVisor bot <gvisor-bot@google.com>2020-08-26 17:04:16 -0700
commit38895db3aa7a65c1c3b18d8bace5d407834b3145 (patch)
tree044c0f4b95660450cbb8391b6da66feef5286413
parent983a55aa0649e48467b2e41f9550759535634854 (diff)
parent03fb0dbf4ce6c6f7f5b8a0c2da7e0df49e1444b5 (diff)
Merge pull request #3717 from makocchi-git:fix/deb_postinst
PiperOrigin-RevId: 328638615
-rwxr-xr-xdebian/postinst.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/debian/postinst.sh b/debian/postinst.sh
index d1e28e17b..6a326f823 100755
--- a/debian/postinst.sh
+++ b/debian/postinst.sh
@@ -21,7 +21,7 @@ fi
# Update docker configuration.
if [ -f /etc/docker/daemon.json ]; then
runsc install
- if systemctl status docker 2>/dev/null; then
+ if systemctl is-active -q docker; then
systemctl restart docker || echo "unable to restart docker; you must do so manually." >&2
fi
fi