mirror of
https://git.proxmox.com/git/pve-access-control
synced 2025-08-05 10:54:34 +00:00

this did not worked as touch did not worked with the abbreviated 'h' for 'hour' or 'hours' Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
26 lines
502 B
Bash
Executable File
26 lines
502 B
Bash
Executable File
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
#DEBHELPER#
|
|
|
|
case "$1" in
|
|
configure)
|
|
# TODO: enable for PVE 6.0
|
|
# if test -n "$2"; then
|
|
#
|
|
# # TODO: remove once PVE 7.0 is released
|
|
# if dpkg --compare-versions "$2" 'lt' '6.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
|