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