]> git.proxmox.com Git - proxmox-ve.git/blame - debian/postinst
debian/postinst: cleanup
[proxmox-ve.git] / debian / postinst
CommitLineData
12e4776a
FG
1#! /bin/sh
2
3980e2e5 3# Abort if any command returns an error value
12e4776a
FG
4set -e
5
12e4776a
FG
6case "$1" in
7 configure)
12e4776a
FG
8 # cleanup - remove Proxmox Release Key key from /etc/apt/trusted.gpg
9 /usr/bin/apt-key --keyring /etc/apt/trusted.gpg del 9887F95A >/dev/null 2>&1 || /bin/true
10
11 # cleanup - remove old stretch-incompatible variant of installing release key
12 rm -f /etc/apt/trusted.gpg.d/proxmox-ve.gpg /etc/apt/trusted.gpg.d/proxmox-ve.gpg~
13
14 # setup kernel links for installation CD (rescue boot)
15 mkdir -p /boot/pve
26301a33
FG
16 ln -sf /boot/pve/vmlinuz-4.13 /boot/pve/vmlinuz
17 ln -sf /boot/pve/initrd.img-4.13 /boot/pve/initrd.img
12e4776a 18 ;;
12e4776a
FG
19esac
20
21exit 0