#!/bin/sh

# Only do anything if apt-cacher is actually installed
if [ ! -x /usr/share/apt-cacher/apt-cacher.pl ]; then
  exit 0
fi

# Run the report generator
/usr/share/apt-cacher/apt-cacher-report.pl

# Run the cache cleaner
# Add -v to get an email showing what the script has done
# Add -p to use the experimental pdiff code
/usr/share/apt-cacher/apt-cacher-cleanup.pl

