mirror of
git://git.proxmox.com/git/pve-access-control.git
synced 2025-01-18 06:03:47 +03:00
243262f185
This activates the authkey rotation added in commits 1800a71a79c7cf49108e22781d2f34be87b1efd through f7282aee6b2ae36b7cfc2331e33e49a818b914fd Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
25 lines
458 B
Bash
Executable File
25 lines
458 B
Bash
Executable File
#!/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
|