File: postrm

package info (click to toggle)
cortado 0.2.2-2
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 1,232 kB
  • ctags: 2,515
  • sloc: java: 17,356; xml: 532; sh: 58; makefile: 15
file content (25 lines) | stat: -rw-r--r-- 328 bytes parent folder | download | duplicates (3)
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

set -e

CONFIGFILE=/etc/apache2/conf.d/cortado

purge_config()
{
  rm -f $CONFIGFILE
  if [ -x /usr/bin/ucf ]; then
    ucf --purge $CONFIGFILE
  fi
  if [ -x /etc/init.d/apache2 ]; then
    invoke-rc.d apache2 reload
  fi
}

. /usr/share/debconf/confmodule

if [ "$1" = purge ]; then
  purge_config
fi

#DEBHELPER#