/cron.daily/apt-cacher-ng
http://github.com/brinkman83/bashrc · Shell · 19 lines · 7 code · 3 blank · 9 comment · 3 complexity · 8285dc41875cedc3c8175cb9424f7193 MD5 · raw file
- #!/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 perl -e 'use MIME::Base64' 2>/dev/null \
- && test -r /usr/lib/apt-cacher-ng/expire-caller.pl ;
- then
- perl /usr/lib/apt-cacher-ng/expire-caller.pl || echo Check error messages in /var/log/apt-cacher-ng/maint_*.log
- else
- echo $(date -R)\|/etc/cron.daily/apt-cacher-ng\| Error starting expiration helper. Install the perl package, check apt-cacher-ng installation. >> /var/log/apt-cacher-ng/apt-cacher.err
- fi