Skip to content
Permalink
Browse files

Cleanup 1.5 build, finalize scripts

  • Loading branch information...
NEMS Linux
NEMS Linux committed Feb 14, 2019
1 parent ece6365 commit 20915e0fe7d9ae9a4769b66ef5de55ae1120b762
Showing with 17 additions and 24 deletions.
  1. +13 −0 build/036-php72
  2. +4 −24 nems-build.sh
@@ -1,5 +1,16 @@
#!/bin/bash

# Uninstall PHP 7.0 residual packages
apt remove --purge -y php7.0-cli
apt remove --purge -y php7.0-common
apt remove --purge -y php7.0-json
apt remove --purge -y php7.0-opcache
apt remove --purge -y php7.0-phpdbg
apt remove --purge -y php7.0-readline ssh
apt -y autoremove

# Install PHP 7.2
apt update
echo "Installing PHP 7.2..."
wget -q https://packages.sury.org/php/apt.gpg -O- | sudo apt-key add -
echo "deb https://packages.sury.org/php/ stretch main" | tee /etc/apt/sources.list.d/php.list
@@ -23,3 +34,5 @@ apt install -y libsodium23
apt install -y php-curl
apt install -y php-rrd
echo "Done."

systemctl restart apache2
@@ -128,32 +128,13 @@ if [[ -e /etc/init.d/firstrun ]]; then
fi

echo "------------------------------"
echo "You are on your own from here, Grasshopper."
echo "Run ./build scripts manually, in order."
exit

# Run the scripts in the build folder
run-parts --exit-on-error -v build
#echo "Now run parts manually..."
#exit

echo "------------------------------"

echo ""

# NIC on Pine64 boards need eth0 to be set to DHCP
# Could probably do this on all boards that use eth0
if (( $1 >= 40 )) && (( $1 <= 49 )); then
#echo "source /etc/network/interfaces.d/*" > /etc/network/interfaces # https://askubuntu.com/a/854226
#echo "allow-hotplug eth0
#iface eth0 inet dhcp" > /etc/network/interfaces.d/eth0
#systemctl restart networking
# Override for now:
echo "auto eth0
iface eth0 inet dhcp" > /etc/network/interfaces
fi
# If build is not completing, run parts manually to find out which script
# is dying and stopping the installation

read -n 1 -s -r -p "Press any key to clean up our build..."
echo "------------------------------"

echo ""

@@ -170,6 +151,5 @@ cat /tmp/errors.log

echo "NEMS $ver compiled."
echo ""
echo "Don't forget to run: echo DEVID > /etc/.nems_hw_model_identifier"

fi
fi # end of else running as root

0 comments on commit 20915e0

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