File: proftpd-basic.postrm

package info (click to toggle)
proftpd-dfsg 1.3.3a-6squeeze7
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 19,868 kB
  • ctags: 10,217
  • sloc: ansic: 111,549; perl: 94,506; sh: 17,265; makefile: 1,986
file content (16 lines) | stat: -rw-r--r-- 266 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh -e

if [ "$1" = "disappear" -o "$1" = "remove" ]
then
    update-inetd --disable ftp
fi

if [ "$1" = "purge" ]
then
    rm -rf /etc/proftpd 
    update-rc.d proftpd remove >/dev/null || exit $?
    userdel --remove --force proftpd || true
fi

#DEBHELPER#