File: xpilot-server.postrm

package info (click to toggle)
xpilot 4.5.5beta.20031222-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 7,696 kB
  • ctags: 8,771
  • sloc: ansic: 85,922; cpp: 4,282; tcl: 3,479; sh: 1,731; makefile: 334; perl: 134
file content (19 lines) | stat: -rw-r--r-- 491 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
#!/bin/bash

case "$1" in
	purge)
	    rm -f /etc/xpilots.conf
	    rm -rf /etc/xpilots
	    # Remove xpilots user and group, if they exist
	    id xpilots >/dev/null 2>&1 && userdel xpilots
	    sg xpilots -c true 2> /dev/null && groupdel xpilots
	;;
esac

# Normally added by dh_installinit, but included here manually because
# we customize the prerm and therefore run dh_installinit --noscripts.
if [ "$1" = "purge" ] ; then
        update-rc.d xpilots remove >/dev/null
fi

#DEBHELPER#