PageRenderTime 142ms CodeModel.GetById 138ms app.highlight 1ms RepoModel.GetById 2ms app.codeStats 0ms

/cron.daily/aptitude

http://github.com/brinkman83/bashrc
Shell | 11 lines | 7 code | 2 blank | 2 comment | 3 complexity | f934222d5eb13cb132e2751bdb023318 MD5 | raw file
 1#!/bin/sh
 2
 3bak=/var/backups
 4
 5# Shamelessly ripped from /etc/cron.daily/standard
 6if test -f /var/lib/aptitude/pkgstates && cd $bak ; then
 7	if ! cmp -s aptitude.pkgstates.0 /var/lib/aptitude/pkgstates ; then
 8		cp -p /var/lib/aptitude/pkgstates aptitude.pkgstates
 9		savelog -c 7 aptitude.pkgstates > /dev/null
10	fi
11fi