File: postrm

package info (click to toggle)
proftpd 1.2.0pre9-4
  • links: PTS
  • area: main
  • in suites: slink
  • size: 2,392 kB
  • ctags: 2,648
  • sloc: ansic: 24,012; sh: 1,754; makefile: 536; perl: 281
file content (20 lines) | stat: -rw-r--r-- 355 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh 

set -e

if [ "$1" = "remove" ] || [ "$1" = "purge" ]
then
    if [ -e /etc/init.d/proftpd ]
    then
	/etc/init.d/proftpd stop || true
    fi
    update-inetd --comment-chars "#<proftpd># " --enable "ftp"
fi

if [ "$1" = "purge" -a -e /usr/share/debconf/confmodule.sh ]
then
    . /usr/share/debconf/confmodule.sh
    db_purge
fi

#DEBHELPER#