Files
2025-08-15 17:07:06 +02:00

30 lines
680 B
Markdown
Raw Permalink Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
## 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 5 * * * /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
```