.gitea/workflows/update.yml aktualisiert
Some checks failed
Host Maintenance / Update host system (push) Has been cancelled

This commit is contained in:
2025-12-20 20:45:22 +01:00
parent 5d408692e0
commit ad12b4033b

View File

@@ -34,5 +34,5 @@ jobs:
# reboot
- name: Reboot
run: |
cmd="needrestart -b -k -q -m e" && [ "$($cmd | grep NEEDRESTART-KCUR | awk '{print $2}')" != "$($cmd | grep NEEDRESTART-KEXP | awk '{print $2'})" ] && echo "Kernel unterschiedlich!" && reboot | at now + 3 minutes
if [ "$(needrestart -b -k -q -m e | grep NEEDRESTART-KCUR | awk '{print $2}')" != "$(needrestart -b -k -q -m e | grep NEEDRESTART-KEXP | awk '{print $2'})" ]; then echo "Kernel unterschiedlich!"; reboot | at now + 3 minutes; else echo "Kernel identisch. Kein Reboot"; fi