Skip to content

Commit

Permalink
Upgrade NagVis on NEMS Linux 1.5+
Browse files Browse the repository at this point in the history
  • Loading branch information
NEMS Linux committed Jun 4, 2020
1 parent a21ffd0 commit 89448b6
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions fixes.sh
Expand Up @@ -347,8 +347,12 @@ if (( $(awk 'BEGIN {print ("'$ver'" >= "'1.5'")}') )); then
fi

# A little gift for my faithful users: Access to NagiosTV ahead of the 1.6 release!
/root/nems/nems-admin/nems-upgrade/patches/000008
/root/nems/nems-admin/nems-upgrade/patches/000009
if ! grep -q "PATCH-000008" /var/log/nems/patches.log; then
/root/nems/nems-admin/nems-upgrade/patches/000008
fi
if ! grep -q "PATCH-000009" /var/log/nems/patches.log; then
/root/nems/nems-admin/nems-upgrade/patches/000009
fi
if [[ ! -e /etc/apache2/conf-enabled/nagiostv.conf ]]; then
/root/nems/nems-admin/build/146-nagiostv
# Enable nagiostv
Expand All @@ -357,6 +361,11 @@ if (( $(awk 'BEGIN {print ("'$ver'" >= "'1.5'")}') )); then
systemctl reload apache2
fi

# Upgrade NagVis (fixes user creation)
if ! grep -q "PATCH-000010" /var/log/nems/patches.log; then
/root/nems/nems-admin/nems-upgrade/patches/000010
fi

# Install TEMPer Hardware Support
if [ $(dpkg-query -W -f='${Status}' python3-serial 2>/dev/null | grep -c "ok installed") -eq 0 ]; then
/root/nems/nems-admin/build/500-temper
Expand Down

0 comments on commit 89448b6

Please sign in to comment.