Merge pull request #3717 from makocchi-git:fix/deb_postinst

PiperOrigin-RevId: 328638615
This commit is contained in:
gVisor bot 2020-08-26 17:04:16 -07:00
commit 38895db3aa
1 changed files with 1 additions and 1 deletions

2
debian/postinst.sh vendored
View File

@ -21,7 +21,7 @@ fi
# Update docker configuration. # Update docker configuration.
if [ -f /etc/docker/daemon.json ]; then if [ -f /etc/docker/daemon.json ]; then
runsc install 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 systemctl restart docker || echo "unable to restart docker; you must do so manually." >&2
fi fi
fi fi