bundles/apt: add option to disable unattended upgrades

This commit is contained in:
Franzi 2024-07-31 14:53:22 +02:00
parent 7649396b8a
commit de6073bdcf
Signed by: kunsi
GPG key ID: 12E3D2136B818350

View file

@ -21,6 +21,9 @@ defaults = {
'cron/jobs/upgrade-and-reboot'
)
def patchday(metadata):
if not node.metadata.get('apt/unattended-upgrades/enabled', True):
return {}
day = metadata.get('apt/unattended-upgrades/day')
hour = metadata.get('apt/unattended-upgrades/hour')