What happened?
When using a systemd timer, combing --remove and --date is no longer removing the outdated images.
Relevant code
[Unit]
After=network-online.target
Description= Check for updated cloud image %i
Documentation=https://github.com/trfore/proxmox-template-scripts
[Service]
Type=oneshot
ExecStart=/usr/local/bin/image-update %i --remove --date
Relevant log output
user@pve:~$ ls /var/lib/vz/template/iso | grep ubuntu-24
ubuntu-24.04-server-cloudimg-amd64-2025-01-08.img
ubuntu-24.04-server-cloudimg-amd64-2025-02-12.img
Proxmox version
pve-manager/8.3.4 (running kernel: 6.8.4-3-pve)