summaryrefslogtreecommitdiffhomepage
path: root/debian/postinst.sh
diff options
context:
space:
mode:
authormakocchi-git <makocchi@gmail.com>2020-08-21 13:48:49 +0900
committermakocchi-git <makocchi@gmail.com>2020-08-26 10:57:52 +0900
commit03fb0dbf4ce6c6f7f5b8a0c2da7e0df49e1444b5 (patch)
tree4697f1d42f4018ba6875a48ad01af8c918ebcc05 /debian/postinst.sh
parent247dcd62d436943ad0bf8455c2be22bc36da6637 (diff)
use is-active instead of status
Diffstat (limited to 'debian/postinst.sh')
-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