File: ippl.postrm

package info (click to toggle)
ippl 1.4.14-15
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 864 kB
  • sloc: ansic: 1,683; yacc: 443; sh: 320; lex: 163; makefile: 93
file content (24 lines) | stat: -rw-r--r-- 383 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
21
22
23
24
#!/bin/sh
# postrm

set -e

USERNAME="Debian-ippl"
HOMEDIR="/run/ippl"

#DEBHELPER#

if [ "$1" = "purge" ]; then
	rm -rf /var/log/ippl
	
	if command -v deluser >/dev/null; then
	  echo >&2 'Removing system user'
	  RET=0
	  deluser --system $USERNAME || RET=$?
	  if [ "$RET" != "8" ]; then
	    exit $RET
	  fi
	else
	  echo >&2 'Not removing system user, deluser not found'
	fi
fi