File: postrm

package info (click to toggle)
deborphan 1.7.28.3%2Bsqueeze1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 1,796 kB
  • ctags: 347
  • sloc: sh: 4,025; ansic: 1,726; makefile: 137
file content (18 lines) | stat: -rw-r--r-- 320 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh -e

KEEP="/var/lib/deborphan/keep"
KEEPDIR="/var/lib/deborphan"

if [ "$1" = "purge" ]; then
	if [ -f $KEEP ]; then
		rm -f $KEEP
		# postrm should not fail when the admin created a file in $KEEPDIR
		rmdir $KEEPDIR || true
	fi
fi

# Here debhelper should add it's stuff if any:
#DEBHELPER#


# vim: set ts=2: