[Piuparts-commits] [SCM] piuparts git repository branch, piatti.git, updated. 4d2c7abb7c5a5a8ae3a0e51c77b65c605e0eb457

Holger Levsen holger at layer-acht.org
Sun Jan 22 12:25:28 UTC 2012


The following commit has been merged in the piatti.git branch:
commit 1902424847d35b22f1cdd643c70bb0e8c7ee1c4f
Author: Holger Levsen <holger at layer-acht.org>
Date:   Fri Jan 20 12:07:50 2012 +0100

    fixup

diff --git a/home/piupartss/bin/slave_cleanup b/home/piupartss/bin/slave_cleanup
index 5bbd124..6611c1e 100755
--- a/home/piupartss/bin/slave_cleanup
+++ b/home/piupartss/bin/slave_cleanup
@@ -24,7 +24,7 @@
 set -e
 
 # do nothing if piuparts-slave is running
-[ $(ps fax|grep piuparts-slave|grep -v grep|wc -l)  ne 0 ] && exit 0
+if [ "$(ps fax|grep piuparts-slave|grep -v grep)" != "" ] && exit 0
 
 # umount all mount points (should be none on boot, but this script can also be called at other times)
 for MOUNTPOINT in $(cat /proc/mounts|cut -d " " -f 2|grep /org/piuparts.debian.org/tmp/) ; do 
@@ -32,6 +32,6 @@ for MOUNTPOINT in $(cat /proc/mounts|cut -d " " -f 2|grep /org/piuparts.debian.o
 done
 
 # cleanup tmp
-rm /org/piuparts.debian.org/tmp -Rf
+sudo rm /org/piuparts.debian.org/tmp -Rf
 mkdir /org/piuparts.debian.org/tmp
 

-- 
piuparts git repository



More information about the Piuparts-commits mailing list