summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpetere <petere@0070b5ef-2f16-0410-befa-9a02bd1d6ddb>2011-12-15 10:43:19 +0000
committerpetere <petere@0070b5ef-2f16-0410-befa-9a02bd1d6ddb>2011-12-15 10:43:19 +0000
commit95d8c3dc0370fb94e623ce23e269ecfd4d3a1e90 (patch)
tree11f6e3ff09e34a3b0f7403b6cc776dc00745920f
parent37adf43fedc24675bcaffb04dcb7171d2630ca7e (diff)
downloadntp-95d8c3dc0370fb94e623ce23e269ecfd4d3a1e90.tar.gz
Generalize ntp.cron.daily to cover all possible filegen stats files
(closes: #644120) git-svn-id: svn://svn.debian.org/pkg-ntp/ntp/trunk@350 0070b5ef-2f16-0410-befa-9a02bd1d6ddb
-rw-r--r--debian/changelog4
-rw-r--r--debian/ntp.cron.daily4
2 files changed, 5 insertions, 3 deletions
diff --git a/debian/changelog b/debian/changelog
index 7d460c5..91c4fe7 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -24,8 +24,10 @@ ntp (1:4.2.6.p3+dfsg-2) UNRELEASED; urgency=low
user already exists but not the group (closes: #624275)
* Don't ignore errors from adduser. If the system user or group already
exist, this is ignored anyway. Anything else we want to know about.
+ * Generalize ntp.cron.daily to cover all possible filegen stats files
+ (closes: #644120)
- -- Peter Eisentraut <petere@debian.org> Tue, 06 Dec 2011 19:57:43 +0200
+ -- Peter Eisentraut <petere@debian.org> Thu, 15 Dec 2011 11:39:34 +0200
ntp (1:4.2.6.p3+dfsg-1) unstable; urgency=low
diff --git a/debian/ntp.cron.daily b/debian/ntp.cron.daily
index ebde54a..562f435 100644
--- a/debian/ntp.cron.daily
+++ b/debian/ntp.cron.daily
@@ -14,14 +14,14 @@ if [ -n "$statsdir" ] && [ -d "$statsdir" ]; then
# compress whatever is left to save space
cd "$statsdir"
- ls loopstats.???????? peerstats.???????? > /dev/null 2>&1
+ ls *stats.???????? > /dev/null 2>&1
if [ $? -eq 0 ]; then
# Note that gzip won't compress the file names that
# are hard links to the live/current files, so this
# compresses yesterday and previous, leaving the live
# log alone. We supress the warnings gzip issues
# about not compressing the linked file.
- gzip --best --quiet loopstats.???????? peerstats.????????
+ gzip --best --quiet *stats.????????
return=$?
case $return in
2)