File: postinst

package info (click to toggle)
libapache2-mod-rpaf 0.6-7%2Bwheezy1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 176 kB
  • sloc: ansic: 302; perl: 122; makefile: 49; sh: 33
file content (16 lines) | stat: -rw-r--r-- 294 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 rpaf
    fi
# only restart if mod_rpaf is enabled
    if [ -e /etc/apache2/mods-enabled/rpaf.load ] ; then
	invoke-rc.d apache2 restart
    fi
fi

#DEBHELPER#