summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-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