]> git.deb.at Git - deb/packages.git/blobdiff - cron.d/050checkinst
Add squeeze-updates. Closes: #619693.
[deb/packages.git] / cron.d / 050checkinst
index 559de6a914b4aa5fd2777279225206cf5d226f8c..fb2356fb690e3a8a6669424079263ebe06ff1dfc 100755 (executable)
@@ -5,32 +5,20 @@
 # Test whether all required packages are installed and generate a mail
 # if they aren't, so that the admin is informed.
 
-locales="de_DE.UTF-8 en_US.UTF-8 nl_NL fr_FR.UTF-8 uk_UA.UTF-8"
-
 packages=`tempfile`
-locs=`tempfile`
 cache=`tempfile`
-trap "rm -f $packages $locs" INT EXIT
+trap "rm -f $packages $cache" INT EXIT
 
 cd $topdir
 dpkg-checkbuilddeps >> $packages 2>&1
 
-for l in $locales
-do
-    if ! grep -q "^$l" /etc/locale.gen
-    then
-       echo "Locale $l missing." >> $locs
-       echo >> $locs
-    fi
-done
-
 if [ -n "$cachedir" ]
 then
     if [ ! -d "$cachedir" ]
     then
        echo "cachedir missing." >> $cache
     else
-       perm=$(ls -ld "$cachedir" | perl -ne 'print "ok" if /^drwxrws--- \d+ www-data/')
+       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
@@ -39,7 +27,7 @@ then
     fi
 fi
 
-if [ -s $packages -o -s $locs -o -s $cache ]
+if [ -s $packages -o -s $cache ]
 then
     (
        echo "Subject: Problem packages.debian.org on `hostname -s`"
@@ -53,12 +41,6 @@ then
            echo
            cat $packages
        fi
-       if [ -s $locs ]
-       then
-           echo "Missing locales:"
-           echo
-           cat $locs
-       fi
        if [ -s $cache ]
        then
            echo "Problems with cachedir:"