Author: blues                        Date: Tue Nov 28 16:25:52 2006 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- allow to make per-target options in tmpwatch files.

---- Files affected:
SOURCES:
   tmpwatch.cron (1.2 -> 1.3) 

---- Diffs:

================================================================
Index: SOURCES/tmpwatch.cron
diff -u SOURCES/tmpwatch.cron:1.2 SOURCES/tmpwatch.cron:1.3
--- SOURCES/tmpwatch.cron:1.2   Wed Mar 22 23:53:53 2006
+++ SOURCES/tmpwatch.cron       Tue Nov 28 17:25:47 2006
@@ -8,9 +8,8 @@
 
 ########
 for file in /etc/tmpwatch/*.conf; do
-       grep ^/ ${file} | while read line; do
-               TIME=`echo ${line} | awk '{ print $2 }'`
-               DIRECTORY=`echo ${line} | awk '{ print $1 }'`
+       grep ^/ ${file} | while read DIRECTORY TIME OPTS; do
+               OPTIONS="${OPTIONS} ${OPTS}"
                /usr/sbin/tmpwatch ${OPTIONS} ${TIME} ${DIRECTORY}
        done
 done
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SOURCES/tmpwatch.cron?r1=1.2&r2=1.3&f=u

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to