Skip to content

Commit

Permalink
echo build progress to index
Browse files Browse the repository at this point in the history
  • Loading branch information
NEMS Linux committed Feb 19, 2019
1 parent a314533 commit 5e859a1
Show file tree
Hide file tree
Showing 46 changed files with 50 additions and 0 deletions.
1 change: 1 addition & 0 deletions build/000-migrator
@@ -1,4 +1,5 @@
#!/bin/bash
echo $0 > /var/www/html/index.html
cd /root/nems # this was created with nems-prep.sh

if [[ ! -d nems-migrator ]]; then
Expand Down
1 change: 1 addition & 0 deletions build/000-nems-scripts
@@ -1,4 +1,5 @@
#!/bin/bash
echo $0 > /var/www/html/index.html

if [[ ! -d /usr/local/share/nems ]]; then
mkdir /usr/local/share/nems
Expand Down
1 change: 1 addition & 0 deletions build/001-system
@@ -1,4 +1,5 @@
#!/bin/bash
echo $0 > /var/www/html/index.html

# Ping is missing from Pine64.
apt -y install iputils-ping
Expand Down
2 changes: 2 additions & 0 deletions build/005-networking
Expand Up @@ -2,6 +2,8 @@
# This fixes hostname errors on Debian Stretch for ODROID XU4 (and possibly others)
# Where a 127.0.1.1 host entry is missing from the default OS.

echo $0 > /var/www/html/index.html

hn=$(/bin/hostname)
printf "Ensuring Hostname is Setup Correctly... "

Expand Down
2 changes: 2 additions & 0 deletions build/010-tty
@@ -1,6 +1,8 @@
#!/bin/bash
# Replace the screen with our bootscreen which shows some basic info to the user (like how to connect)

echo $0 > /var/www/html/index.html

apt install -y dialog

# Disable TTY1
Expand Down
2 changes: 2 additions & 0 deletions build/011-tty
Expand Up @@ -2,6 +2,8 @@

# Perform some additional TTY setup without manipulating the splash (010-tty)

echo $0 > /var/www/html/index.html

if [[ ! -f /etc/rc.local ]]; then
echo "#!/bin/sh -e
" > /etc/rc.local
Expand Down
2 changes: 2 additions & 0 deletions build/012-tty
Expand Up @@ -2,6 +2,8 @@

# Don't output kernel messages (such as firewall blocks) to TTY

echo $0 > /var/www/html/index.html

if [[ ! -f /etc/rc.local ]]; then
echo "#!/bin/sh -e
" > /etc/rc.local
Expand Down
1 change: 1 addition & 0 deletions build/015-reload-daemon
@@ -1,3 +1,4 @@
#!/bin/bash
echo $0 > /var/www/html/index.html
echo "Reloading Daemon"
systemctl daemon-reload
1 change: 1 addition & 0 deletions build/020-grub
@@ -1,4 +1,5 @@
#!/bin/bash
echo $0 > /var/www/html/index.html

if [[ -d /boot/grub/ ]]; then
# Determine the platform
Expand Down
1 change: 1 addition & 0 deletions build/025-auto-upgrades
@@ -1,4 +1,5 @@
#!/bin/bash
echo $0 > /var/www/html/index.html
apt update
apt -y install unattended-upgrades apt-listchanges

Expand Down
1 change: 1 addition & 0 deletions build/028-csf
@@ -1,4 +1,5 @@
#!/bin/bash
echo $0 > /var/www/html/index.html

## Install CSF/LFD
cd /usr/src
Expand Down
1 change: 1 addition & 0 deletions build/029-csf-conf
@@ -1,4 +1,5 @@
#!/bin/bash
echo $0 > /var/www/html/index.html

## Add our default configuration
cp -f /root/nems/nems-migrator/data/1.5/csf/* /etc/csf/
Expand Down
1 change: 1 addition & 0 deletions build/030-user
@@ -1,4 +1,5 @@
#!/bin/bash
echo $0 > /var/www/html/index.html

# Create nemsadmin user
adduser --disabled-password --gecos "" nemsadmin
Expand Down
1 change: 1 addition & 0 deletions build/035-apache2
@@ -1,4 +1,5 @@
#!/bin/bash
echo $0 > /var/www/html/index.html

if [[ $ver == '' ]]; then
if [[ -e /usr/local/bin/nems-info ]]; then
Expand Down
1 change: 1 addition & 0 deletions build/036-php72
@@ -1,4 +1,5 @@
#!/bin/bash
echo $0 > /var/www/html/index.html

# Get the platform before removing php (as it requires PHP)
platform=$(/usr/local/bin/nems-info platform)
Expand Down
1 change: 1 addition & 0 deletions build/040-phpmailer
@@ -1,4 +1,5 @@
#!/bin/bash
echo $0 > /var/www/html/index.html
cd /var/www/
if [[ -d PHPMailer ]]; then
rm -Rf PHPMailer
Expand Down
1 change: 1 addition & 0 deletions build/050-nagios
@@ -1,4 +1,5 @@
#!/bin/bash
echo $0 > /var/www/html/index.html

# Delete the symlink to nems-www theme before installing (prevent overwrite)
if [[ -L /usr/local/nagios/share ]]; then
Expand Down
1 change: 1 addition & 0 deletions build/051-nagios-plugins
@@ -1,4 +1,5 @@
#!/bin/bash
echo $0 > /var/www/html/index.html

# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# This script is run during initial NEMS compile, but because sometimes #
Expand Down
1 change: 1 addition & 0 deletions build/052-nems-nagios-plugins
@@ -1,4 +1,5 @@
#!/bin/bash
echo $0 > /var/www/html/index.html

# Dependencies
# CISCO
Expand Down
1 change: 1 addition & 0 deletions build/053-nagios-confs
@@ -1,4 +1,5 @@
#!/bin/bash
echo $0 > /var/www/html/index.html

if [[ ! -d /var/log/nagios ]]; then
mkdir /var/log/nagios
Expand Down
1 change: 1 addition & 0 deletions build/054-nagios-enable
@@ -1,4 +1,5 @@
#!/bin/bash
echo $0 > /var/www/html/index.html

a2enmod rewrite
a2enmod cgi
Expand Down
1 change: 1 addition & 0 deletions build/055-wmic
@@ -1,4 +1,5 @@
#!/bin/bash
echo $0 > /var/www/html/index.html
# Thanks to Ryan Siegel for the contribution on NEMS 1.2.1
# Updated for NEMS 1.5 since openvas stopped distributing the package

Expand Down
1 change: 1 addition & 0 deletions build/060-nagvis
@@ -1,4 +1,5 @@
#!/bin/bash
echo $0 > /var/www/html/index.html

# The conf gets imported by nems-init, so only need to install.

Expand Down
1 change: 1 addition & 0 deletions build/110-openITCOCKPIT
@@ -1,4 +1,5 @@
#!/bin/bash
echo $0 > /var/www/html/index.html
#apt-key adv --recv --keyserver hkp://keyserver.ubuntu.com 1148DA8E
#echo 'deb https://packages.openitcockpit.com/repositories/stretch stretch main' > /etc/apt/sources.list.d/openitcockpit.list
#apt update
Expand Down
1 change: 1 addition & 0 deletions build/150-nems
@@ -1,4 +1,5 @@
#!/bin/bash
echo $0 > /var/www/html/index.html

# Add and configure NEMS packages

Expand Down
1 change: 1 addition & 0 deletions build/152-nagiosgraph
@@ -1,4 +1,5 @@
#!/bin/bash
echo $0 > /var/www/html/index.html
# https://raymii.org/s/tutorials/Nagios_Core_4_Installation_on_Ubuntu_12.04.html
# https://ahmermansoor.blogspot.com/2016/09/install-configure-nagiosgraph-on-nagios.html
# *** https://www.allcloud.io/how-to/install-nagiosgraph/ ***
Expand Down
1 change: 1 addition & 0 deletions build/153-mysql
@@ -1,4 +1,5 @@
#!/bin/bash
echo $0 > /var/www/html/index.html

# Replace the database with Sample database
systemctl stop mysql
Expand Down
1 change: 1 addition & 0 deletions build/155-samba
@@ -1,4 +1,5 @@
#!/bin/bash
echo $0 > /var/www/html/index.html
systemctl stop smbd
cp /root/nems/nems-migrator/data/1.5/samba/smb.conf /etc/samba/
init=$(/usr/local/bin/nems-info init)
Expand Down
1 change: 1 addition & 0 deletions build/160-odroid-xu4
@@ -1,4 +1,5 @@
#!/bin/bash
echo $0 > /var/www/html/index.html

# This is for the Pine A64+

Expand Down
1 change: 1 addition & 0 deletions build/160-pine64
@@ -1,4 +1,5 @@
#!/bin/bash
echo $0 > /var/www/html/index.html

platform=$(/usr/local/bin/nems-info platform)

Expand Down
1 change: 1 addition & 0 deletions build/160-pine_a64+
@@ -1,4 +1,5 @@
#!/bin/bash
echo $0 > /var/www/html/index.html

# This is for the Pine A64+

Expand Down
1 change: 1 addition & 0 deletions build/160-pine_rock64
@@ -1,4 +1,5 @@
#!/bin/bash
echo $0 > /var/www/html/index.html

# The Rock64 platform requires some extra fandangling to resize the filesystem
# Thanks to Ayufan for doing all the legwork... I'd have scratched my head a while.
Expand Down
1 change: 1 addition & 0 deletions build/160-raspi-config
@@ -1,4 +1,5 @@
#!/bin/bash
echo $0 > /var/www/html/index.html

printf "Installing raspi-config... "
platform=$(/usr/local/share/nems/nems-scripts/info.sh platform) # This is why we have to do this after 150-nems
Expand Down
1 change: 1 addition & 0 deletions build/160-rpi-piwatcher
@@ -1,4 +1,5 @@
#!/bin/bash
echo $0 > /var/www/html/index.html

platform=$(/usr/local/bin/nems-info platform)

Expand Down
1 change: 1 addition & 0 deletions build/160-rpimonitor
@@ -1,4 +1,5 @@
#!/bin/bash
echo $0 > /var/www/html/index.html

printf "Installing rpimonitor... "
platform=$(/usr/local/share/nems/nems-scripts/info.sh platform) # This is why we have to do this after 150-nems
Expand Down
1 change: 1 addition & 0 deletions build/161-luajit
@@ -1,4 +1,5 @@
#!/bin/bash
echo $0 > /var/www/html/index.html

if [[ -d /usr/lib/aarch64-linux-gnu ]]; then
# On aarch64 (eg., Pine64), luajit can't be installed by apt,
Expand Down
1 change: 1 addition & 0 deletions build/165-monitorix
@@ -1,4 +1,5 @@
#!/bin/bash
echo $0 > /var/www/html/index.html

# Set the URL of the latest debpack from https://www.monitorix.org/downloads.html
debpack=https://www.monitorix.org/monitorix_3.10.1-izzy1_all.deb
Expand Down
1 change: 1 addition & 0 deletions build/170-cockpit
@@ -1,4 +1,5 @@
#!/bin/bash
echo $0 > /var/www/html/index.html

platform=$(/usr/local/bin/nems-info platform)
if [[ $platform = "0" ]] ||
Expand Down
1 change: 1 addition & 0 deletions build/171-cockpit
@@ -1,4 +1,5 @@
#!/bin/bash
echo $0 > /var/www/html/index.html

## Remove Cockpit theme and replace with symlink to the NEMS theme

Expand Down
1 change: 1 addition & 0 deletions build/175-monit
@@ -1,4 +1,5 @@
#!/bin/bash
echo $0 > /var/www/html/index.html

# Fix the cert bug in 5.20
# It seems this has been patched upstream, so can comment this out - but leaving until confirmed
Expand Down
1 change: 1 addition & 0 deletions build/180-adagios
@@ -1,4 +1,5 @@
#!/bin/bash
echo $0 > /var/www/html/index.html

# Prepare sudo permissions
if ! grep -q "# Adagios" /etc/sudoers; then
Expand Down
1 change: 1 addition & 0 deletions build/190-wifi
@@ -1,4 +1,5 @@
#!/bin/bash
echo $0 > /var/www/html/index.html

# Set Network Manager WiFi MAC address to not change on boot

Expand Down
1 change: 1 addition & 0 deletions build/200-hostname
@@ -1,4 +1,5 @@
#!/bin/bash
echo $0 > /var/www/html/index.html
hn=$(/bin/hostname)
printf "Changing Hostname... "
/bin/sed -i -- 's/'"$hn"'/nems/g' /etc/hosts
Expand Down
1 change: 1 addition & 0 deletions build/220-webmin
@@ -1,4 +1,5 @@
#!/bin/bash
echo $0 > /var/www/html/index.html
apt -y remove --purge webmin
if [[ -e /webmin-setup.out ]]; then
rm /webmin-setup.out
Expand Down
1 change: 1 addition & 0 deletions build/230-motd
@@ -1,4 +1,5 @@
#!/bin/bash
echo $0 > /var/www/html/index.html

# Quick cheat to avoid errors if no files exist
touch /etc/update-motd.d/dummy
Expand Down
1 change: 1 addition & 0 deletions build/235-dpkg-vendor
@@ -1,4 +1,5 @@
#!/bin/bash
echo $0 > /var/www/html/index.html
echo "Vendor: NEMS_Linux
Vendor-URL: https://nemslinux.com/
Bugs: http://forum.category5.tv/forum-38.html
Expand Down

0 comments on commit 5e859a1

Please sign in to comment.