mirror of
https://git.proxmox.com/git/pve-access-control
synced 2025-08-10 15:10:08 +00:00
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 commit3a98190
("add postinst script") and enabled by commit243262f
("fix #2079: activate authkey rotation every 24 hours"). Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
This commit is contained in:
parent
44657865a7
commit
4546c8df48
24
debian/postinst
vendored
24
debian/postinst
vendored
@ -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
|
Loading…
Reference in New Issue
Block a user