From 41cdd9b27ff73035ed9be34e3cbdd670468ee643 Mon Sep 17 00:00:00 2001 From: Daniel Mizyrycki Date: Fri, 21 Jun 2013 17:37:20 -0700 Subject: [PATCH] Packaging|ubuntu, issue #601: Allow packaging prerm to do its job --- packaging/ubuntu/lxc-docker.prerm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packaging/ubuntu/lxc-docker.prerm b/packaging/ubuntu/lxc-docker.prerm index 824f15cff0..aed7d97eea 100644 --- a/packaging/ubuntu/lxc-docker.prerm +++ b/packaging/ubuntu/lxc-docker.prerm @@ -1,4 +1,4 @@ #!/bin/sh # Stop docker -/sbin/stop docker +if [ "`pgrep -f '/usr/bin/docker -d'`" != "" ]; then /sbin/stop docker; fi