File: libapache2-mod-tile.postinst

package info (click to toggle)
libapache2-mod-tile 0.8.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,872 kB
  • sloc: cpp: 18,151; ansic: 7,574; sh: 980; makefile: 163; xml: 27
file content (18 lines) | stat: -rw-r--r-- 437 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh

set -e

if [ "$1" = install ] ; then

    # enable mod_tile (only enable on new installs, not on upgrades)
    if [ -z "$2" ] ; then
        if [ ! -f /etc/apache2/mods-enabled/tile.load ] ; then
            if [ -e /usr/share/apache2/apache2-maintscript-helper ] ; then
                . /usr/share/apache2/apache2-maintscript-helper
                apache2_invoke enmod tile
            fi
        fi
    fi
fi

#DEBHELPER#