File: libapache2-mod-parser3.postinst

package info (click to toggle)
parser 3.4.2-2
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 6,416 kB
  • sloc: cpp: 31,111; sh: 11,522; ansic: 9,417; yacc: 1,363; makefile: 236; awk: 5
file content (16 lines) | stat: -rw-r--r-- 303 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh

set -e

if [ "$1" = configure ] ; then
# only enable on new installs, not on upgrades
    if [ -z "$2" ] ; then
	a2enmod -q parser3
    fi
# only restart if mod_parser3 is enabled
    if [ -e /etc/apache2/mods-enabled/parser3.load ] ; then
	invoke-rc.d apache2 restart
    fi
fi

#DEBHELPER#