File: prerm

package info (click to toggle)
geoip-database-contrib 1.19
  • links: PTS, VCS
  • area: contrib
  • in suites: stretch
  • size: 152 kB
  • sloc: sh: 155; makefile: 2
file content (25 lines) | stat: -rw-r--r-- 422 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/sh
# prerm script for geoip-database-contrib

set -e

case "$1" in
    remove)
        if [ -f "/usr/share/GeoIP/GeoLiteCity.dat" ]
        then
            update-alternatives --remove GeoIPCity.dat /usr/share/GeoIP/GeoLiteCity.dat
        fi
    ;;

    upgrade|deconfigure|failed-upgrade)
    ;;

    *)
        echo "prerm called with unknown argument \`$1'" >&2
        exit 1
    ;;
esac

#DEBHELPER#

exit 0