File: partimage-server.postrm

package info (click to toggle)
partimage 0.6.9-12
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,572 kB
  • sloc: cpp: 15,727; sh: 10,867; makefile: 167; sed: 16
file content (21 lines) | stat: -rw-r--r-- 475 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh

set -e

if [ "$1" = "purge" ]; then
	rm -f /etc/partimaged/partimaged.cert \
		/etc/partimaged/partimaged.key \
		/etc/partimaged/privkey.pem \
		/etc/partimaged/partimagedusers \
		/etc/partimaged/partimaged.rand \
		/etc/partimaged/passwd.db

	# I'm not using "rm -rf" due the user could have additional data
	rmdir /etc/partimaged || true
fi

# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.

#DEBHELPER#