Closed maglub closed 5 years ago
This was due to an unfortunate construct in setup.sh, that just defaulted any OS release that it didn't recognize as being very old. The "latest and greatest" names for the php packages were "reserved" for OS release "stretch".
I changed the construct now, so that any newer releases will use the "latest" packages.
curRelease=$(grep VERSION_CODENAME= /etc/os-release | cut -d= -f2)
echo " - OS Release: $curRelease"
case $curRelease in
jessie|wheezy)
#--- older raspbian
#--- note, php5-cgi has to come before php5. Otherwise apt-get will install apache2 to satisfy dependencies
#--- https://wildlyinaccurate.com/installing-php-on-debian-without-apache/
for package in php5-cgi php5 php5-sqlite php5-cli php5-rrd php5-curl lighttpd sqlite3 bc screen python-dev python-pip
do
echo -n " - Checking $package"
sudo dpkg -s $package >/dev/null 2>&1 || { echo " - Adding package $package to the install list" ; curInstallPackages="$curInstallPackages $package" ; }
done
;;
buster|stretch|*)
for package in php-cgi php php-sqlite3 php-cli php-rrd php-mbstring php-curl lighttpd sqlite3 bc screen python-dev python-pip
do
echo -n " - Checking $package"
sudo dpkg -s $package >/dev/null 2>&1 || { echo " - Adding package $package to the install list" ; curInstallPackages="$curInstallPackages $package" ; }
done
;;
esac
Introduction