File: postsrsd.postrm

package info (click to toggle)
postsrsd 1.10-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 396 kB
  • sloc: ansic: 1,613; sh: 249; makefile: 25
file content (23 lines) | stat: -rwxr-xr-x 457 bytes parent folder | download | duplicates (5)
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/default/postsrsd

	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#