mirror of
https://github.com/trailofbits/algo.git
synced 2025-06-07 15:43:54 +02:00
Use /var/run/reboot-required to determine if a restart is needed
The current check only looks to see if a new kernel was installed.
This commit is contained in:
parent
09bbc4058c
commit
433389c0ab
1 changed files with 1 additions and 1 deletions
|
@ -12,7 +12,7 @@
|
||||||
|
|
||||||
- name: Check if reboot is required
|
- name: Check if reboot is required
|
||||||
shell: >
|
shell: >
|
||||||
if [[ $(readlink -f /vmlinuz) != /boot/vmlinuz-$(uname -r) ]]; then echo "required"; else echo "no"; fi
|
if [[ -e /var/run/reboot-required ]]; then echo "required"; else echo "no"; fi
|
||||||
args:
|
args:
|
||||||
executable: /bin/bash
|
executable: /bin/bash
|
||||||
register: reboot_required
|
register: reboot_required
|
||||||
|
|
Loading…
Add table
Reference in a new issue