Commit a59728c2 authored by Eduard Bloch's avatar Eduard Bloch

Deal with deinstall state in cron.daily

parent c85aabfa
......@@ -6,17 +6,20 @@
# HOSTNAME=externallyVisibleHostName
# export HOSTNAME
. /etc/default/apt-cacher-ng
test -z "$NO_CRON_RUN" || exit 0
test -x /usr/lib/apt-cacher-ng/acngtool || exit 0
rpage=$(/usr/lib/apt-cacher-ng/acngtool -c /etc/apt-cacher-ng 2>/dev/null printvar ReportPage)
if test -e /etc/default/apt-cacher-ng
then
. /etc/default/apt-cacher-ng
test -z "$NO_CRON_RUN" || exit 0
fi
if test 0 = $(echo $rpage | wc -w)
rpage=$(/usr/lib/apt-cacher-ng/acngtool -c /etc/apt-cacher-ng 2>/dev/null printvar ReportPage)
if test 0 = $(echo "$rpage" | wc -w)
then
echo Warning: ReportPage setting of apt-cacher-ng was disabled by administrator. >&2
echo See /usr/share/doc/apt-cacher-ng/README.Debian for details. >&2
exit 42
fi
test -x /usr/lib/apt-cacher-ng/acngtool || exit 0
/usr/lib/apt-cacher-ng/acngtool maint -c /etc/apt-cacher-ng SocketPath=/var/run/apt-cacher-ng/socket
apt-cacher-ng (3-4) unstable; urgency=medium
* Made cron.daily tolerant to removal of config files (closes: #858952)
-- Eduard Bloch <blade@debian.org> Sun, 02 Apr 2017 10:05:38 +0200
apt-cacher-ng (3-3) unstable; urgency=medium
* Updated debian/copyright to match the upstream version (now really)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment