]> git.proxmox.com Git - proxmox-mailgateway.git/blob - postrm.in
depend on new kernel 4.13.13-5, bump version to 5.0-7
[proxmox-mailgateway.git] / postrm.in
1 #! /bin/sh
2
3 # Abort if any command returns an error value
4 set -e
5
6 case "$1" in
7 purge|remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
8 # remove kernel symlinks
9 rm -f /boot/pve/vmlinuz
10 rm -f /boot/pve/initrd.img
11 rmdir --ignore-fail-on-non-empty /boot/pve/ || true
12 ;;
13
14 *)
15 echo "postrm called with unknown argument \`$1'" >&2
16 exit 1
17 ;;
18 esac
19