Permalink
Browse files

Improve NEMS 1.5 MOTD

  • Loading branch information...
NEMS Linux
NEMS Linux committed Nov 27, 2018
1 parent 1dc5b2d commit 2da8c53ca6bfd2db19d1c429bb56db92dff37543
Showing with 11 additions and 9 deletions.
  1. +0 −9 build/150-nems
  2. +8 −0 build/230-motd
  3. +3 −0 nems-upgrade/1.4.1-1.5
@@ -66,15 +66,6 @@ ln -sf /usr/local/share/nems/nems-scripts/upgrade.sh /usr/local/bin/nems-upgrade
# Create symlinks, apply patches/fixes, etc.
/usr/local/share/nems/nems-scripts/fixes.sh
# Enable NEMS MOTD
echo > /etc/motd
cp /root/nems/nems-migrator/data/1.5/nems/motd.tcl /etc/
chmod 755 /etc/motd.tcl
if ! grep -q "/etc/motd.tcl" /etc/profile; then
echo "/etc/motd.tcl" >> /etc/profile
fi
# Point Nagios to the NEMS Nagios Theme in nems-www and import the config
if [[ -d /usr/local/nagios/share ]]; then
rm -rf /usr/local/nagios/share
@@ -6,3 +6,11 @@
# Remove any MOTD items included with the base distro
rm /etc/update-motd.d/*
# Enable NEMS MOTD
echo > /etc/motd
cp /root/nems/nems-migrator/data/1.5/nems/motd.tcl /etc/
chmod 755 /etc/motd.tcl
if ! grep -q "/etc/motd.tcl" /etc/profile; then
echo "/etc/motd.tcl" >> /etc/profile
fi
@@ -42,6 +42,9 @@ if [[ "$ver" == "1.4.1" ]]; then
## Recompile livestatus with Nagios 4.4.2
/root/nems/nems-admin/build/055-check_mk
## Install MOTD
/root/nems/nems-admin/build/230-motd
else
echo "Cannot uprade NEMS $ver to 1.5."
fi

0 comments on commit 2da8c53

Please sign in to comment.