SOURCES: tmpwatch.cron - use OPTIONS

blues blues at pld-linux.org
Wed Mar 22 23:53:58 CET 2006


Author: blues                        Date: Wed Mar 22 22:53:58 2006 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- use OPTIONS

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

---- Diffs:

================================================================
Index: SOURCES/tmpwatch.cron
diff -u SOURCES/tmpwatch.cron:1.1 SOURCES/tmpwatch.cron:1.2
--- SOURCES/tmpwatch.cron:1.1	Wed Mar 22 23:14:01 2006
+++ SOURCES/tmpwatch.cron	Wed Mar 22 23:53:53 2006
@@ -1,6 +1,7 @@
 #!/bin/sh
 #########
 # Some defaults:
+OPTIONS="-fq"
 if [ -f /etc/sysconfig/tmpwatch ]; then
 	. /etc/sysconfig/tmpwatch
 fi
@@ -10,7 +11,7 @@
 	grep ^/ ${file} | while read line; do
 		TIME=`echo ${line} | awk '{ print $2 }'`
 		DIRECTORY=`echo ${line} | awk '{ print $1 }'`
-		/usr/sbin/tmpwatch ${TIME} ${DIRECTORY}
+		/usr/sbin/tmpwatch ${OPTIONS} ${TIME} ${DIRECTORY}
 	done
 done
 
================================================================

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



More information about the pld-cvs-commit mailing list