File: postrm

package info (click to toggle)
deborphan 1.7.35
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 764 kB
  • sloc: ansic: 1,631; makefile: 119; sh: 87; perl: 54
file content (17 lines) | stat: -rw-r--r-- 306 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/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#