Removing generated files on purge.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
c4d21d5274
commit
b9f630281c
1 changed files with 23 additions and 0 deletions
23
debian/nvme-cli.postrm
vendored
Executable file
23
debian/nvme-cli.postrm
vendored
Executable file
|
@ -0,0 +1,23 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
case "${1}" in
|
||||||
|
purge)
|
||||||
|
rm -f /etc/nvme/hostnqn
|
||||||
|
rm -f /etc/nvme/hostid
|
||||||
|
;;
|
||||||
|
|
||||||
|
remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
|
||||||
|
|
||||||
|
;;
|
||||||
|
|
||||||
|
*)
|
||||||
|
echo "postrm called with unknown argument \`${1}'" >&2
|
||||||
|
exit 1
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
#DEBHELPER#
|
||||||
|
|
||||||
|
exit 0
|
Loading…
Add table
Reference in a new issue