Browse files

Continue PHP installation even on error

  • Loading branch information...
NEMS Linux
NEMS Linux committed Dec 19, 2018
1 parent 6ce5d58 commit 719951101d4cfe5aaaa436c37bbd0e430be39053
Showing with 20 additions and 2 deletions.
  1. +18 −1 build/036-php72
  2. +2 −1 nems-upgrade/1.4.1-1.5
@@ -4,5 +4,22 @@ echo "Installing PHP 7.2..."
wget -q -O- | sudo apt-key add -
echo "deb 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
apt install -y php7.2
apt install -y php7.2-cli
apt install -y php7.2-common
apt install -y php7.2-curl
apt install -y php7.2-gd
apt install -y php7.2-json
apt install -y php7.2-mbstring
apt install -y php7.2-mysql
apt install -y php7.2-opcache
apt install -y php7.2-phpdbg
apt install -y php7.2-readline
apt install -y php7.2-sqlite3
apt install -y php7.2-xml
apt install -y libapache2-mod-php7.2
apt install -y libargon2-1
apt install -y libsodium23
apt install -y php-curl
apt install -y php-rrd
echo "Done."
@@ -18,7 +18,8 @@ if [[ "$ver" == "1.4.1" ]]; then

## 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
echo "Removing PHP 7.0..." && apt -y purge php7.0* && echo "Done removing PHP 7.0."

## Upgrade Nagios to from 4.3.4 to 4.4.2
if [[ -d /tmp/libexec ]]; then rm -rf /tmp/libexec; fi

0 comments on commit 7199511

Please sign in to comment.