소스 검색

Packaging|ubuntu, issue #601: Allow packaging prerm to do its job

Daniel Mizyrycki 12 년 전
부모
커밋
41cdd9b27f
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      packaging/ubuntu/lxc-docker.prerm

+ 1 - 1
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