ansible-role-motd/templates/etc/update-motd.d/80-reboot.j2

19 lines
413 B
Plaintext
Raw Permalink Normal View History

#!/bin/bash
white="\e[39m"
green="\e[1;32m"
red="\e[1;31m"
dim="\e[2m"
undim="\e[0m"
if [ -f /var/run/reboot-required ]; then
echo
2021-08-20 19:18:42 +07:00
echo -e "${red}<<================= ${green}REBOOT REQUIRED${red} =====================>"
echo
echo -e "${white}Packages causing reboot:${dim}"
cat -n /var/run/reboot-required.pkgs
echo -e "${red}<<=======================================================>${undim}"
fi