Last change
on this file was 82, checked in by chronos, 7 years ago |
- Fixed: Wrong function call in postinst and postrm deb scripts.
|
File size:
659 bytes
|
Line | |
---|
1 | #!/bin/sh
|
---|
2 | # postrm script for estetistic
|
---|
3 |
|
---|
4 | set -e
|
---|
5 |
|
---|
6 | apache_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 estetistic
|
---|
12 | elif [ "$COMMON_STATE" = "installed" ] || [ "$COMMON_STATE" = "unpacked" ] ; then
|
---|
13 | rm -f /etc/apache2/conf.d/estetistic.conf
|
---|
14 | fi
|
---|
15 |
|
---|
16 | rm -f /etc/apache2/conf-available/estetistic.conf
|
---|
17 | }
|
---|
18 |
|
---|
19 | if [ "$1" = "remove" ] || [ "$1" = "purge" ]; then
|
---|
20 | apache_remove $1
|
---|
21 | fi
|
---|
22 |
|
---|
23 | exit 0
|
---|
Note:
See
TracBrowser
for help on using the repository browser.