~launchpad-pqm/launchpad/devel

6520.8.9 by Guilherme Salgado
Change get-geoip-db to download the db from devpad and add a make rule to stop if the GeoIP db is not in place.
1
#! /bin/bash
8687.15.4 by Karl Fogel
Add the copyright header block to more files; tweak format in a few files.
2
#
3
# Copyright 2009 Canonical Ltd.  This software is licensed under the
4
# GNU Affero General Public License version 3 (see the file LICENSE).
5
#
6520.8.9 by Guilherme Salgado
Change get-geoip-db to download the db from devpad and add a make rule to stop if the GeoIP db is not in place.
6
# Check that we have a GeoIP city database.
7
8
if [ ! -e /usr/share/GeoIP/GeoLiteCity.dat -a \
9
     ! -e /usr/share/GeoIP/GeoIPCity.dat ]
10
  then 
6912.3.3 by Guilherme Salgado
Handle Celso's review.
11
    echo "*********************************************************"
12
    echo "No GeoIP db found.  Please install launchpad-dependencies"
13
    echo "*********************************************************"
6520.8.9 by Guilherme Salgado
Change get-geoip-db to download the db from devpad and add a make rule to stop if the GeoIP db is not in place.
14
    exit 1
15
fi
16
exit 0