Support Raspbian 9.x installs. (#6554)
* Updated code related to Raspbian. Tested on Raspbian 9.6.
This commit is contained in:
parent
5e06d53d8c
commit
c23cdb0e31
1 changed files with 7 additions and 8 deletions
|
@ -115,7 +115,6 @@ install_packages () {
|
||||||
fi
|
fi
|
||||||
done;
|
done;
|
||||||
;;
|
;;
|
||||||
|
|
||||||
centos)
|
centos)
|
||||||
for p in $PACKAGES; do
|
for p in $PACKAGES; do
|
||||||
if yum list installed "$p" >/dev/null 2>&1; then
|
if yum list installed "$p" >/dev/null 2>&1; then
|
||||||
|
@ -552,8 +551,8 @@ case $distro in
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
raspbian)
|
raspbian)
|
||||||
if [ "$version" == "9.4" ]; then
|
if [[ "$version" =~ ^9 ]]; then
|
||||||
# Install for Raspbian 9.4
|
# Install for Raspbian 9.x
|
||||||
tzone=$(cat /etc/timezone)
|
tzone=$(cat /etc/timezone)
|
||||||
cat >/etc/apt/sources.list.d/10-buster.list <<EOL
|
cat >/etc/apt/sources.list.d/10-buster.list <<EOL
|
||||||
deb http://mirrordirector.raspbian.org/raspbian/ buster main contrib non-free rpi
|
deb http://mirrordirector.raspbian.org/raspbian/ buster main contrib non-free rpi
|
||||||
|
@ -574,7 +573,7 @@ EOL
|
||||||
progress
|
progress
|
||||||
|
|
||||||
echo "* Installing Apache httpd, PHP, MariaDB and other requirements."
|
echo "* Installing Apache httpd, PHP, MariaDB and other requirements."
|
||||||
PACKAGES="mariadb-server mariadb-client apache2 libapache2-mod-php php7.2 php7.2-mcrypt php7.2-curl php7.2-mysql php7.2-gd php7.2-ldap php7.2-zip php7.2-mbstring php7.2-xml php7.2-bcmath curl git unzip"
|
PACKAGES="mariadb-server mariadb-client apache2 libapache2-mod-php7.2 php7.2 php7.2-mcrypt php7.2-curl php7.2-mysql php7.2-gd php7.2-ldap php7.2-zip php7.2-mbstring php7.2-xml php7.2-bcmath curl git unzip"
|
||||||
install_packages
|
install_packages
|
||||||
|
|
||||||
echo "* Configuring Apache."
|
echo "* Configuring Apache."
|
||||||
|
|
Loading…
Add table
Reference in a new issue