File: partimage-server.postrm

package info (click to toggle)
partimage 0.6.9-8
  • links: PTS
  • area: main
  • in suites: bullseye
  • size: 4,576 kB
  • sloc: cpp: 15,727; sh: 10,925; makefile: 164; sed: 16
file content (22 lines) | stat: -rw-r--r-- 484 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
#!/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##

exit 0