Skip to content
Permalink
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 http://mirrordirector.raspbian.org/raspbian/ 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"
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
# 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/info.sh 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 http://giteduberger.fr rpimonitor/" > /etc/apt/sources.list.d/rpimonitor.list
echo ""
apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 2C0D3C0F
@@ -4,42 +4,8 @@
# https://tech.maweki.de/installing-cockpit-on-raspbian.html
# https://github.com/cockpit-project/cockpit/releases

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

# Update *before* adding Stretch Backports
apt update
# Add the Stretch Backports repository
echo 'deb http://ftp.debian.org/debian 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!

key=8B48AD6246925553
while [[ ! $(gpg --list-keys | grep $key) ]]; do
echo Importing $key from MIT...
gpg --keyserver pgpkeys.mit.edu --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 keyserver.ubuntu.com --recv-key $key
gpg -a --export $key | sudo apt-key add -
fi
done

key=7638D0442B90D010
while [[ ! $(gpg --list-keys | grep $key) ]]; do
echo Importing $key from MIT...
gpg --keyserver pgpkeys.mit.edu --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 keyserver.ubuntu.com --recv-key $key
gpg -a --export $key | sudo apt-key add -
fi
done
# 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.