.gitea/workflows/update.yml aktualisiert
Some checks failed
Host Maintenance / Update host system (push) Has been cancelled
Some checks failed
Host Maintenance / Update host system (push) Has been cancelled
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user