Skip to content
Permalink
Browse files

Ensure nems-tools is pre-installed

  • Loading branch information...
NEMS Linux
NEMS Linux committed Feb 23, 2019
1 parent e7c46b0 commit b91c1929206a926597ca2c6e0e30a5d414ff68f0
@@ -39,6 +39,7 @@ apt install -y $repo libargon2-1
apt install -y $repo libsodium23
apt install -y $repo php-curl
apt install -y $repo php-rrd

# for check_mssql
apt install -y $repo php7.3-sybase

@@ -1,4 +1,5 @@
#!/bin/bash
echo $0 > /var/www/html/userfiles/nems-build.cur

# Delete the symlink to nems-www theme before installing (prevent overwrite)
if [[ -L /usr/local/nagios/share ]]; then
@@ -1,4 +1,5 @@
#!/bin/bash
echo $0 > /var/www/html/userfiles/nems-build.cur

# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# This script is run during initial NEMS compile, but because sometimes #
@@ -1,4 +1,5 @@
#!/bin/bash
echo $0 > /var/www/html/userfiles/nems-build.cur

# Dependencies
# CISCO
@@ -1,4 +1,5 @@
#!/bin/bash
echo $0 > /var/www/html/userfiles/nems-build.cur

if [[ ! -d /var/log/nagios ]]; then
mkdir /var/log/nagios
@@ -1,4 +1,5 @@
#!/bin/bash
echo $0 > /var/www/html/userfiles/nems-build.cur

a2enmod rewrite
a2enmod cgi
@@ -1,4 +1,5 @@
#!/bin/bash
echo $0 > /var/www/html/userfiles/nems-build.cur

# Once GCC 7 is available upstream, we can upgrade to 1.5, which requires C++17 to compile.

@@ -18,10 +19,8 @@ fi
# Need to do an update because a lot of time has passed by now
apt update
apt install $repo -y php-net-socket
apt install $repo -y php7.2-sqlite3
apt install $repo -y sqlite3
apt install $repo -y graphviz
apt install $repo -y php7.2-gd
apt install $repo -y rrdtool
apt install $repo -y librrd-dev
apt install $repo -y libboost-all-dev
@@ -0,0 +1,15 @@
#!/bin/bash
echo $0 > /var/www/html/userfiles/nems-build.cur

# nConf
cd /var/www/
apt update
# Need to be able to use the MySQL database from PHP
apt install -y libdbi-perl libdbd-mysql-perl
systemctl restart apache2
git clone https://github.com/Cat5TV/nconf && chown -R www-data:www-data nconf
# Import nConf Configuration
cp -f /root/nems/nems-migrator/data/1.4/nconf/deployment.ini /var/www/nconf/config/
cp -f /root/nems/nems-migrator/data/1.4/nconf/authentication.php /var/www/nconf/config/
cp -f /root/nems/nems-migrator/data/1.4/nconf/mysql.php /var/www/nconf/config/
cp -f /root/nems/nems-migrator/data/1.4/nconf/nconf.php /var/www/nconf/config/
@@ -0,0 +1,8 @@
#!/bin/bash
echo $0 > /var/www/html/userfiles/nems-build.cur

echo "nems-tools is not installed."
cd /root/nems
git clone https://github.com/Cat5TV/nems-tools
echo 'Installed nems-tools.'

@@ -33,18 +33,6 @@ fi
# Import NEMS crontab (must happen after nems-migrator but before fixes.sh)
crontab /root/nems/nems-migrator/data/nems/crontab

# nConf
apt update
# Need to be able to use the MySQL database from PHP
apt install -y php7.2-mysql libdbi-perl libdbd-mysql-perl
systemctl restart apache2
git clone https://github.com/Cat5TV/nconf && chown -R www-data:www-data nconf
# Import nConf Configuration
cp -f /root/nems/nems-migrator/data/1.4/nconf/deployment.ini /var/www/nconf/config/
cp -f /root/nems/nems-migrator/data/1.4/nconf/authentication.php /var/www/nconf/config/
cp -f /root/nems/nems-migrator/data/1.4/nconf/mysql.php /var/www/nconf/config/
cp -f /root/nems/nems-migrator/data/1.4/nconf/nconf.php /var/www/nconf/config/

# Create symlinks, apply patches/fixes, etc.
/usr/local/share/nems/nems-scripts/fixes.sh

0 comments on commit b91c192

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