5
0
mirror of git://git.proxmox.com/git/pve-access-control.git synced 2025-01-18 06:03:47 +03:00
Thomas Lamprecht 243262f185 fix #2079: activate authkey rotation every 24 hours
This activates the authkey rotation added in commits
1800a71a79c7cf49108e22781d2f34be87b1efd through
f7282aee6b2ae36b7cfc2331e33e49a818b914fd

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-05-21 22:07:41 +02:00

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