source: trunk/debian/prerm @ 1512

Revision 1512, 616 bytes checked in by benjamin, 9 years ago (diff)

alternc-webalizer new version, debconf, po, menulist ...

  • Property svn:eol-style set to native
  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
Line 
1#!/bin/sh -e
2
3# Debian alternc-webalizer prerm
4# Benjamin Sonntag <benjamin@alternc.org>
5
6case "$1" in
7upgrade)
8    new=$2                  # get new version
9    ;;
10
11deconfigure)
12    ;;
13
14remove)
15    # Remove stats from the menu
16    grep -v "menu_webalizer.php" /var/alternc/bureau/admin/menulist.txt >/var/alternc/bureau/admin/menulist.txt.new
17    rm /var/alternc/bureau/admin/menulist.txt
18    mv /var/alternc/bureau/admin/menulist.txt.new /var/alternc/bureau/admin/menulist.txt
19       
20    ;;
21
22failed-upgrade)
23    ;;
24
25*)
26    echo "prerm called with unknown argument '$1'" >&2
27    exit 1
28    ;;
29
30esac
31
32#DEBHELPER#
33
34exit 0
Note: See TracBrowser for help on using the repository browser.