[Piuparts-commits] [SCM] piatti.debian.org configuration files branch, develop, updated. 0.42-30-g1902424

Holger Levsen holger at layer-acht.org
Fri Jan 20 11:07:54 UTC 2012


The following commit has been merged in the develop 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
 

-- 
piatti.debian.org configuration files



More information about the Piuparts-commits mailing list