MOON
Server: Apache
System: Linux srv.tv1channel.org 3.10.0-1160.el7.x86_64 #1 SMP Mon Oct 19 16:18:59 UTC 2020 x86_64
User: tv1channel (1001)
PHP: 8.0.30
Disabled: NONE
Upload Files
File: /home/tv1channel/old/etc/update-motd.d/99-livepatch-kernel-upgrade-required
#!/bin/sh
#
# MOTD update script for livepatch-client.
#
if [ ! -f "/snap/bin/canonical-livepatch" ]; then
    exit 0
fi
msg=$(/snap/bin/canonical-livepatch kernel-upgrade-required 2> /dev/null)
if [ $? -eq 0 ]; then
    echo "$msg"
    echo
fi