CBL-Mariner/SPECS/check-restart/check-restart.sh

7 строки
161 B
Bash

OUTPUT=$(needs-restarting -r)
echo $OUTPUT
RESTART_REQD='Reboot is required'
if [[ "$OUTPUT" == *"$RESTART_REQD"* ]]; then
touch /var/run/reboot-required
fi