debian: remove outdated postinst snippet

Upgrading from a pre-PVE 6 version directly to a (current) PVE 8.x
version can never work in the first place, so the test is not needed
anymore.

The snippet was added by commit 3a98190 ("add postinst script") and
enabled by commit 243262f ("fix #2079: activate authkey rotation every
24 hours").

Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
This commit is contained in:
Fiona Ebner 2025-03-12 13:59:06 +01:00 committed by Fabian Grünbichler
parent 44657865a7
commit 4546c8df48

24
debian/postinst vendored
View File

@ -1,24 +0,0 @@
#!/bin/sh
set -e
#DEBHELPER#
case "$1" in
configure)
if test -n "$2"; then
# TODO: remove once PVE 7.0 is released
if dpkg --compare-versions "$2" 'lt' '6.0-0+1'; then
if test ! -e /etc/pve/authkey.pub.old; then
# reset key age to prevent immediate invalidation of all current tickets
touch -d "-2 hours" /etc/pve/authkey.pub || true
fi
fi
fi
;;
esac
exit 0