File: torrus-apache2.postrm

package info (click to toggle)
torrus 1.0.8-2
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 3,740 kB
  • ctags: 707
  • sloc: perl: 25,904; xml: 16,400; sh: 3,788; makefile: 603
file content (18 lines) | stat: -rw-r--r-- 432 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh
set -e

# Remove links on purge
if test "${1}" = "purge"; then
    if test -L /etc/apache2/conf.d/torrus-apache2.conf ; then
	rm -f /etc/apache2/conf.d/torrus-apache2.conf || true
        if [ -x "$(which invoke-rc.d 2>/dev/null)" ]; then
            invoke-rc.d apache2 reload > /dev/null 2>&1 || true
        else
            /etc/init.d/apache2 reload > /dev/null 2>&1 || true
        fi
    fi
fi

#DEBHELPER#

exit 0