PageRenderTime 130ms CodeModel.GetById 126ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/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
 1#!/bin/sh
 2# Run the expire function of apt-cacher-ng non-interactively (unless errors 
 3# are detected).
 4
 5# optional, specify hostname to appear in error messages and links
 6# HOSTNAME=externallyVisibleHostName
 7# export HOSTNAME
 8
 9# optional, specify IP address to connect to
10# ACNGIP=10.0.1.3
11# export ACNGIP
12
13if perl -e 'use MIME::Base64' 2>/dev/null \
14   && test -r /usr/lib/apt-cacher-ng/expire-caller.pl ;
15then
16   perl /usr/lib/apt-cacher-ng/expire-caller.pl || echo Check error messages in /var/log/apt-cacher-ng/maint_*.log 
17else
18   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
19fi