Skip to content
Permalink
Browse files

Ensure buster repo used for PHP 7.2 on Pi

  • Loading branch information...
NEMS Linux
NEMS Linux committed Feb 17, 2019
1 parent c174a92 commit 8883d78a1bab4a8c8fcfd7a1e101d8cc29fe2d2c
Showing with 23 additions and 20 deletions.
  1. +23 −18 build/036-php72
  2. +0 −2 build/052-nems-nagios-plugins
@@ -33,11 +33,13 @@ Pin-Priority: 900
Package: *
Pin: release n=buster
Pin-Priority: 750" > /etc/apt/preferences.d/10-buster
repo="-t buster"
else
# Use Sury's Debian repository (will break Raspberry Pi Zero/1)
echo "Setting up new repository..."
wget -q https://packages.sury.org/php/apt.gpg -O- | sudo apt-key add -
echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" | tee /etc/apt/sources.list.d/php.list
repo=""
fi

# Now, upgrade
@@ -46,24 +48,27 @@ apt -y upgrade

echo "Installing PHP 7.2..."
# Install PHP 7.2
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
apt install -y $repo php7.2
apt install -y $repo php7.2-cli
apt install -y $repo php7.2-common
apt install -y $repo php7.2-curl
apt install -y $repo php7.2-gd
apt install -y $repo php7.2-json
apt install -y $repo php7.2-mbstring
apt install -y $repo php7.2-mysql
apt install -y $repo php7.2-opcache
apt install -y $repo php7.2-phpdbg
apt install -y $repo php7.2-readline
apt install -y $repo php7.2-sqlite3
apt install -y $repo php7.2-xml
apt install -y $repo libapache2-mod-php7.2
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.2-sybase

echo "Done."

systemctl restart apache2
@@ -11,8 +11,6 @@
apt -y install libipc-run-perl freeipmi
# check_esxi_hardware
apt install -y python-pywbem
# check_mssql
apt install -y php7.2-sybase

# Setup an interpreter for notify-by-pushover (and possibly others... prevents problems)
if [[ ! -f /usr/local/bin/php ]]; then

0 comments on commit 8883d78

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