File: progress-linux-container.postrm

package info (click to toggle)
progress-linux-metapackages 20260205-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 160 kB
  • sloc: makefile: 100; sh: 44
file content (28 lines) | stat: -rwxr-xr-x 605 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/sh

set -e

case "${1}" in
	remove)
		for FILE in halt poweroff reboot shutdown coldreboot
		do
			dpkg-divert --package progress-linux-container --quiet --remove --rename --divert "/usr/lib/container/divert/${FILE}.orig" "/usr/sbin/${FILE}"
		done

		rmdir --ignore-fail-on-non-empty /usr/lib/container/divert > /dev/null 2>&1 || true
		rmdir --ignore-fail-on-non-empty /usr/lib/container > /dev/null 2>&1 || true
		;;

	purge|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)

		;;

	*)
		echo "postrm called with unknown argument \`${1}'" >&2
		exit 1
		;;
esac

#DEBHELPER#

exit 0