Skip to content
Permalink
Browse files

Huge improvements to speedtest - PATCH-000004

  • Loading branch information...
NEMS Linux
NEMS Linux committed Mar 28, 2019
1 parent 7cea9b0 commit 0da9935b35fcbd0b6efbeba82d1b78d1caff451d
Showing with 16 additions and 0 deletions.
  1. +5 −0 build/052-nems-nagios-plugins
  2. +11 −0 nems-upgrade/patches/000004
@@ -25,6 +25,11 @@ echo $0 > /var/www/html/userfiles/nems-build.cur
# Grab the Migrator plugins
cp -f /root/nems/nems-migrator/data/1.5/nagios/plugins/* /usr/local/nagios/libexec/

# Log patch of upgrade to speedtest
if ! grep -q "PATCH-000004" /var/log/nems/patches.log; then
echo "PATCH-000004" >> /var/log/nems/patches.log
fi

# Add backward compatibility for notify-by-telegram (in case user has NEMS 1.3-1.4 config)
if [[ -f /usr/local/bin/telegram_nems.lua ]]; then
rm -f /usr/local/bin/telegram_nems.lua
@@ -0,0 +1,11 @@
#!/bin/bash

if ! grep -q "PATCH-000004" /var/log/nems/patches.log; then
cp -f /root/nems/nems-migrator/data/1.5/nagios/plugins/check_speedtest-cli.sh /usr/lib/nagios/plugins/
echo "PATCH-000004" >> /var/log/nems/patches.log
else
echo "This patch is already applied."
fi



0 comments on commit 0da9935

Please sign in to comment.
You can’t perform that action at this time.