[Python-apps-commits] r7015 - in packages/slapos.tool.format/trunk/debian (postrm)

arnau at users.alioth.debian.org arnau at users.alioth.debian.org
Fri Apr 29 10:10:15 UTC 2011


    Date: Friday, April 29, 2011 @ 10:10:08
  Author: arnau
Revision: 7015

Do not use prepended path

Modified:
  packages/slapos.tool.format/trunk/debian/postrm

Modified: packages/slapos.tool.format/trunk/debian/postrm
===================================================================
--- packages/slapos.tool.format/trunk/debian/postrm	2011-04-29 10:03:52 UTC (rev 7014)
+++ packages/slapos.tool.format/trunk/debian/postrm	2011-04-29 10:10:08 UTC (rev 7015)
@@ -7,20 +7,20 @@
 case "$1" in
     purge)
 	if [ -d "$CONFIG_DIR" ]; then
-	    /bin/rm -f "${CONFIG_DIR}/slapos.cfg"
-	    test -d "${CONFIG_DIR}/ssl/" && /bin/rm -rf "${CONFIG_DIR}/ssl/"
-	    [ $(/bin/ls "$CONFIG_DIR" | wc -l) -eq 0 ] && /bin/rmdir "$CONFIG_DIR"
+	    rm -f "${CONFIG_DIR}/slapos.cfg"
+	    test -d "${CONFIG_DIR}/ssl/" && rm -rf "${CONFIG_DIR}/ssl/"
+	    [ $(ls "$CONFIG_DIR" | wc -l) -eq 0 ] && rmdir "$CONFIG_DIR"
 	fi
 
 	test -d /var/cache/slapos/certificates/ && \
-	    /bin/rm -rf /var/cache/slapos/certificates
+	    rm -rf /var/cache/slapos/certificates
 
 	if [ -d "$LOG_DIR" ]; then
-	    test -f "${LOG_DIR}/slapformat.log" && /bin/rm -f "${LOG_DIR}/slapformat.log"
-	    [ $(/bin/ls "$LOG_DIR" | wc -l) -eq 0 ] && /bin/rmdir "$LOG_DIR"
+	    test -f "${LOG_DIR}/slapformat.log" && rm -f "${LOG_DIR}/slapformat.log"
+	    [ $(ls "$LOG_DIR" | wc -l) -eq 0 ] && rmdir "$LOG_DIR"
 	fi
 
-	test -d /var/lib/slapos && /bin/rm -rf /var/lib/slapos/
+	test -d /var/lib/slapos && rm -rf /var/lib/slapos/
 	;;
 esac
 




More information about the Python-apps-commits mailing list