File: postrm

package info (click to toggle)
deborphan 1.7.28.8
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 1,916 kB
  • sloc: sh: 4,123; ansic: 1,847; makefile: 152
file content (19 lines) | stat: -rw-r--r-- 324 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
#!/bin/sh
set -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: