summaryrefslogtreecommitdiffhomepage
path: root/debian
diff options
context:
space:
mode:
authormakocchi-git <makocchi@gmail.com>2020-08-21 13:48:49 +0900
committerAndrei Vagin <avagin@gmail.com>2020-09-09 17:53:10 -0700
commit81d6499848783d79989f2a0280accfcfc9753378 (patch)
tree044c0f4b95660450cbb8391b6da66feef5286413 /debian
parentf63cddc6b4826007ca2a755d30b2df65ea21c518 (diff)
use is-active instead of status
Diffstat (limited to 'debian')
-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