sysstat/sysstat-7.0.4-links.patch
2007-03-23 10:54:28 +00:00

15 lines
705 B
Diff

--- sysstat-7.0.4/sa2.in.link 2007-01-25 21:13:10.000000000 +0100
+++ sysstat-7.0.4/sa2.in 2007-03-23 11:49:50.000000000 +0100
@@ -37,9 +37,9 @@
[ -f "$DFILE" ] || exit 0
cd ${ENDIR}
${ENDIR}/sar $* -f ${DFILE} > ${RPT}
-find ${DDIR} \( -name 'sar??' -o -name 'sa??' -o -name 'sar??.gz' -o -name 'sa??.gz' \) \
+find ${DDIR}/ \( -name 'sar??' -o -name 'sa??' -o -name 'sar??.gz' -o -name 'sa??.gz' \) \
-mtime +"${HISTORY}" -exec rm -f {} \;
-find ${DDIR} \( -name 'sar??' -o -name 'sa??' \) -type f -mtime +"${COMPRESSAFTER}" \
+find ${DDIR}/ \( -name 'sar??' -o -name 'sa??' \) -type f -mtime +"${COMPRESSAFTER}" \
-exec gzip {} \; > /dev/null 2>&1
cd ${DDIR}
rmdir [0-9]????? > /dev/null 2>&1