Permalink
Browse files

Begin 1.4.1->1.5 Migration, add Alias

  • Loading branch information...
NEMS Linux
NEMS Linux committed Oct 28, 2018
1 parent 6bbc8b6 commit 6da5cdf30206c87cb88b60cc53ea1a906a551fc2
Showing with 17 additions and 1 deletion.
  1. +3 −1 build/036-php72
  2. +14 −0 nems-upgrade/1.4.1-1.5
@@ -1,6 +1,8 @@
#!/bin/bash
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
apt update
apt install -y php7.2 php7.2-cli php7.2-common php7.2-curl php7.2-gd php7.2-json php7.2-mbstring php7.2-mysql php7.2-opcache php7.2-phpdbg php7.2-readline php7.2-sqlite3 php7.2-xml libapache2-mod-php7.2 libargon2-1 libsodium23 php-curl php-rrd
echo "Done."
@@ -0,0 +1,14 @@
#!/bin/bash
platform=$(/usr/local/share/nems/nems-scripts/info.sh platform)
ver=$(/usr/local/share/nems/nems-scripts/info.sh nemsver)
if [[ "$ver" == "1.4.1" ]]; then
# All Platforms
## Upgrade PHP from 7.0 to 7.2
echo "Removing PHP 7.0..." && apt -y purge php7.0* && echo "Done removing PHP 7.0." && /root/nems/nems-admin/build/036-php72
else
echo "Cannot uprade NEMS $ver to 1.5."
fi

0 comments on commit 6da5cdf

Please sign in to comment.