source: trunk/Install/deb/debian/postrm

Last change on this file was 853, checked in by chronos, 7 years ago
  • Modified: Changed name of the project in deb package to isp-central.
File size: 663 bytes
Line 
1#!/bin/sh
2# postrm script for isp-central
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 isp-central
12 elif [ "$COMMON_STATE" = "installed" ] || [ "$COMMON_STATE" = "unpacked" ] ; then
13 rm -f /etc/apache2/conf.d/isp-central.conf
14 fi
15
16 rm -f /etc/apache2/conf-available/isp-central.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.