From c01df64dcc4bda406844cb12d141e5fe2973b9cf Mon Sep 17 00:00:00 2001 From: patrick Date: Fri, 15 Aug 2025 17:06:48 +0200 Subject: [PATCH] =?UTF-8?q?README.md=20hinzugef=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..644ba30 --- /dev/null +++ b/README.md @@ -0,0 +1,30 @@ +## Proxmox Update Script +``` +nano /root/scripte/proxmox-update.py +chmod +x /root/scripte/proxmox-update.py +``` +## Testlauf: +``` +sudo /root/scripte/proxmox-update.py +``` +Automatisiert mit Reboot-Option (per cron oder systemd-timer): +``` +REBOOT=YES /root/scripte/proxmox-update.py +``` +## Exit-Codes: +``` +Code Bedeutung +0 Erfolg (keine oder erfolgreiche Updates) +1 Kernel-Update gefunden → Reboot empfohlen +2 Fehler (z. B. apt nicht erreichbar) + +``` +## Cronjob (z. B. täglich 5 Uhr): +``` +0 4 * * * /root/scripte/proxmox-update.py +``` +Ergibt z. B.: +``` +rpool/ROOT/pve-1@pve-update-via-cron-2025-08-15_05-00-00 +rpool/pveconf@pve-update-via-cron-2025-08-15_05-00-00 +``` \ No newline at end of file