From 261c6f39fa234f8795e62eff48db85c9366d4268 Mon Sep 17 00:00:00 2001 From: Sophie Meynieux Date: Fri, 26 Apr 2013 15:06:40 +0200 Subject: [PATCH] Bug 10127 : Printoverdues.sh should tar only pdf files Signed-off-by: Chris Cormack Signed-off-by: Katrin Fischer From the bug report: At the end of printoverdues.sh, an archive is generated containing all files present in directory given as parameter. As archives are generated in this given directory, they contain previously generated tar files, creating oversized files. Only .pdf files should be archived All tests and QA script pass. Worked ok in my tests, only packign PDF in the given directory. Signed-off-by: Galen Charlton Signed-off-by: Tomas Cohen Arazi --- misc/cronjobs/printoverdues.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/cronjobs/printoverdues.sh b/misc/cronjobs/printoverdues.sh index 2cce09349f..6819e0cede 100755 --- a/misc/cronjobs/printoverdues.sh +++ b/misc/cronjobs/printoverdues.sh @@ -47,4 +47,4 @@ then lp $optprinter $1/*.pdf; fi -tar cvfz $1`date "+%Y%m%d"`.tar.gz $1; +tar cvfzP $1`date "+%Y%m%d"`.tar.gz $1/*.pdf; -- 2.39.5