File: postsrsd.postrm

package info (click to toggle)
postsrsd 2.0.11-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 572 kB
  • sloc: ansic: 4,084; python: 385; sh: 99; makefile: 16
file content (23 lines) | stat: -rwxr-xr-x 454 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
#!/bin/sh

set -e

if [ "$1" = "purge" ]; then
	rm -f /etc/postsrsd.secret
	rm -f /etc/postsrsd.conf

	if getent passwd postsrsd >/dev/null; then
		if [ -x "$(command -v deluser)" ]; then
			deluser --system postsrsd || echo "Could not remove postsrsd user."
		fi
	fi

	if getent group postsrsd >/dev/null; then
		if [ -x "$(command -v delgroup)" ]; then
			delgroup --system postsrsd || echo "Could not remove postsrsd group."
		fi
	fi

fi

#DEBHELPER#