Skip to content
Browse files

Migrate to buster + PHP 7.3

  • Loading branch information...
NEMS Linux
NEMS Linux committed Feb 23, 2019
1 parent ddafd8f commit 860b937bc802e4896ad87a83f58fb760d8092b5d
Showing with 21 additions and 73 deletions.
  1. +17 −36 build/036-php72
  2. +2 −1 build/160-rpimonitor
  3. +2 −36 build/170-cockpit
@@ -12,53 +12,34 @@ apt remove --purge -y php7.0-phpdbg
apt remove --purge -y php7.0-readline
apt -y autoremove

# Install PHP 7.2

# Use Raspbian repo for Pi, Sury's Debian Repo for others.
if [[ $platform < 10 ]]; then
echo "deb buster main contrib non-free rpi" > /etc/apt/sources.list.d/10-buster.list
echo "Package: *
Pin: release n=stretch
Pin-Priority: 900
Package: *
Pin: release n=buster
Pin-Priority: 750" > /etc/apt/preferences.d/10-buster
repo="-t buster"
# Use Sury's Debian repository (will break Raspberry Pi Zero/1)
echo "Setting up new repository..."
wget -q -O- | sudo apt-key add -
echo "deb $(lsb_release -sc) main" | tee /etc/apt/sources.list.d/php.list
# Install PHP 7.3

# Now, upgrade
apt update
apt -y upgrade

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

echo "Done."

@@ -5,7 +5,8 @@ platform=$(/usr/local/share/nems/nems-scripts/ platform) # This is why w
if [[ $platform < 10 ]]; then
echo "Installing rpimonitor... "
apt update
apt -y install dirmngr libraspberrypi-bin
apt -y install dirmngr
apt -y install libraspberrypi-bin
echo "deb rpimonitor/" > /etc/apt/sources.list.d/rpimonitor.list
echo ""
apt-key adv --recv-keys --keyserver 2C0D3C0F
@@ -4,42 +4,8 @@

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

# Update *before* adding Stretch Backports
apt update
# Add the Stretch Backports repository
echo 'deb stretch-backports main' > /etc/apt/sources.list.d/backports.list
# Install dirmngr, required to import the Debian Backports keys
apt install dirmngr --install-recommends

# Import the keys
# Will try both MIT and Ubuntu servers - one should work!

while [[ ! $(gpg --list-keys | grep $key) ]]; do
echo Importing $key from MIT...
gpg --keyserver --recv-key $key
gpg -a --export $key | sudo apt-key add -
if [[ ! $(gpg --list-keys | grep $key) ]]; then
echo Importing $key from Canonical...
gpg --keyserver --recv-key $key
gpg -a --export $key | sudo apt-key add -

while [[ ! $(gpg --list-keys | grep $key) ]]; do
echo Importing $key from MIT...
gpg --keyserver --recv-key $key
gpg -a --export $key | sudo apt-key add -
if [[ ! $(gpg --list-keys | grep $key) ]]; then
echo Importing $key from Canonical...
gpg --keyserver --recv-key $key
gpg -a --export $key | sudo apt-key add -
# May not be necessary since Buster now includes it in repos

# Install Cockpit
apt update
apt -t stretch-backports -y install cockpit
apt -y install cockpit

0 comments on commit 860b937

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