mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
use is-active instead of status
This commit is contained in:
Vendored
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user