~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to utilities/check-geoip-db

[r=sinzui][bug=855670] Add additional checks to the private team
        launchpad.LimitedView security adaptor so more users in defined
        roles can see the team.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/bash
 
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
#
 
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 
 
11
    echo "*********************************************************"
 
12
    echo "No GeoIP db found.  Please install launchpad-dependencies"
 
13
    echo "*********************************************************"
 
14
    exit 1
 
15
fi
 
16
exit 0