30 lines
680 B
Markdown
30 lines
680 B
Markdown
## 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
|
||
``` |