use is-active instead of status

This commit is contained in:
makocchi-git
2020-08-26 10:57:52 +09:00
parent 247dcd62d4
commit 03fb0dbf4c
+1 -1
View File
@@ -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