source: trunk/Install/deb/debian/postrm

Last change on this file was 33, checked in by chronos, 4 years ago
  • Added: Files needed for Debian package creation
File size: 651 bytes
Line 
1#!/bin/sh
2# postrm script for teribear
3
4set -e
5
6apache_remove() {
7 COMMON_STATE=$(dpkg-query -f '${Status}' -W 'apache2.2-common' 2>/dev/null | awk '{print $3}' || true)
8
9 if [ -e /usr/share/apache2/apache2-maintscript-helper ] ; then
10 . /usr/share/apache2/apache2-maintscript-helper
11 apache2_invoke disconf teribear
12 elif [ "$COMMON_STATE" = "installed" ] || [ "$COMMON_STATE" = "unpacked" ] ; then
13 rm -f /etc/apache2/conf.d/teribear.conf
14 fi
15
16 rm -f /etc/apache2/conf-available/teribear.conf
17}
18
19if [ "$1" = "remove" ] || [ "$1" = "purge" ]; then
20 apache_remove $1
21fi
22
23exit 0
Note: See TracBrowser for help on using the repository browser.