debian: Migrate packaging to Debhelper
[git/debian.git] / debian / gitweb.prerm
blobed07d3d0aac617c271a5cecdbb29b414a126ee61
1 #!/bin/sh
2 set -e
4 #DEBHELPER#
6 test "$1" = remove || test "$1" = deconfigure || exit 0
8 # This block does not run if Apache is removed before gitweb.
9 # In that case there is nothing we can do --- Apache needs to
10 # take responsibility for undoing what enconf did because
11 # disconf is not available for use by individual web apps.
12 if [ -e /usr/share/apache2/apache2-maintscript-helper ]
13 then
14 . /usr/share/apache2/apache2-maintscript-helper
15 apache2_invoke disconf gitweb || exit