summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Dryabzhinsky <sergey.dryabzhinsky@gmail.com>2009-04-12 14:17:29 +0000
committerSergey Dryabzhinsky <sergey.dryabzhinsky@gmail.com>2009-04-12 14:17:29 +0000
commit081ed294887afaacf80de24f6f4e1532bdc8974c (patch)
tree8a60106b652babde997f9ca71874c0f9138974c6 /net-misc/apt-cacher-ng/files/cron.daily
parentsys-fs/aufs: Remove \n (diff)
downloadsunrise-081ed294887afaacf80de24f6f4e1532bdc8974c.tar.gz
sunrise-081ed294887afaacf80de24f6f4e1532bdc8974c.tar.bz2
sunrise-081ed294887afaacf80de24f6f4e1532bdc8974c.zip
Ebuild for bug 265840. Thanks to pva and Tommy.
svn path=/sunrise/; revision=8276
Diffstat (limited to 'net-misc/apt-cacher-ng/files/cron.daily')
-rw-r--r--net-misc/apt-cacher-ng/files/cron.daily15
1 files changed, 15 insertions, 0 deletions
diff --git a/net-misc/apt-cacher-ng/files/cron.daily b/net-misc/apt-cacher-ng/files/cron.daily
new file mode 100644
index 000000000..b5ea14367
--- /dev/null
+++ b/net-misc/apt-cacher-ng/files/cron.daily
@@ -0,0 +1,15 @@
+#!/bin/sh
+# Run the expire function of apt-cacher-ng non-interactively (unless errors
+# are detected).
+
+# optional, specify hostname to appear in error messages and links
+# HOSTNAME=externallyVisibleHostName
+# export HOSTNAME
+
+# optional, specify IP address to connect to
+# ACNGIP=10.0.1.3
+# export ACNGIP
+
+if test -r /usr/sbin/expire-caller.pl ; then
+ perl /usr/sbin/expire-caller.pl || echo Check error messages in /var/log/apt-cacher-ng/maint_*.log
+fi