File: sshproxy.postrm

package info (click to toggle)
sshproxy 0.6.0~beta2-2
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 956 kB
  • ctags: 1,296
  • sloc: python: 8,932; sh: 268; sql: 40; makefile: 38; xml: 21
file content (29 lines) | stat: -rw-r--r-- 513 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/sh -e

case "$1" in
    remove)
        ;;

    upgrade)
        ;;

    purge)
        rm -rf /var/lib/sshproxy
        rm -rf /etc/sshproxy
	if which ucf > /dev/null 2>&1; then
	    ucf --purge /etc/sshproxy/sshproxy.ini
	fi
        deluser --system sshproxy || true
        delgroup --system sshproxy || true
        ;;

    failed-upgrade|abort-install|abort-upgrade|disappear)
        ;;

    *)
        echo "postrm called with unknown argument \`$1'" >&2
        exit 1
        ;;
esac

#DEBHELPER#