diff options
author | Simon Paillard <spaillard@debian.org> | 2013-05-13 20:54:23 +0200 |
---|---|---|
committer | Simon Paillard <spaillard@debian.org> | 2013-05-13 20:55:03 +0200 |
commit | 00bbc08c23d02b13203a07b40a81c03d6d3e92ed (patch) | |
tree | 73dd5949445ed663e8336c6d5172f1290f3c506b | |
parent | ddb81100697b7bdc6bed21fb1cb90809434d44c6 (diff) |
050checkinst dropped at each run, relevant only at INSTALL
(cherry picked from commit ffc21279b6402cf4fc32ffaf4a3196863bc9ba30)
-rwxr-xr-x | cron.d/050checkinst | 51 |
1 files changed, 0 insertions, 51 deletions
diff --git a/cron.d/050checkinst b/cron.d/050checkinst deleted file mode 100755 index fb2356f..0000000 --- a/cron.d/050checkinst +++ /dev/null @@ -1,51 +0,0 @@ -#! /bin/sh - -. `dirname $0`/../config.sh - -# Test whether all required packages are installed and generate a mail -# if they aren't, so that the admin is informed. - -packages=`tempfile` -cache=`tempfile` -trap "rm -f $packages $cache" INT EXIT - -cd $topdir -dpkg-checkbuilddeps >> $packages 2>&1 - -if [ -n "$cachedir" ] -then - if [ ! -d "$cachedir" ] - then - echo "cachedir missing." >> $cache - else - perm=$(ls -ld "$cachedir" | perl -ne 'print "ok" if /^drwx...... \d+ www-data/ || /^d...rws... \d+ [\w-]+\/www-data/') - if [ -z "$perm" ] - then - echo "cachedir has wrong permissions." >> $cache - echo "make sure it is writable by the web server." >> $cache - fi - fi -fi - -if [ -s $packages -o -s $cache ] -then - ( - echo "Subject: Problem packages.debian.org on `hostname -s`" - echo "To: ${admin_email}" - echo - echo "On host `hostname -f`" - echo - if [ -s $packages ] - then - echo "Missing packages:" - echo - cat $packages - fi - if [ -s $cache ] - then - echo "Problems with cachedir:" - echo - cat $cache - fi - ) | tee /dev/stderr | /usr/sbin/sendmail -t -fi |