File: libapache2-mod-tile.postinst

package info (click to toggle)
libapache2-mod-tile 0.6.1-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 2,888 kB
  • sloc: cpp: 7,541; ansic: 7,330; sh: 943; makefile: 128; xml: 26
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#