mirror of
				https://git.proxmox.com/git/pve-access-control
				synced 2025-11-04 02:45:47 +00:00 
			
		
		
		
	This activates the authkey rotation added in commits
1800a71a79c7cf49108e22781d2f34be87b1efd through
f7282aee6b
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
 |