Skip to content
Snippets Groups Projects
Commit c23cdb0e authored by shinayoshi's avatar shinayoshi Committed by snipe
Browse files

Support Raspbian 9.x installs. (#6554)

* Updated code related to Raspbian.

Tested on Raspbian 9.6.
parent 5e06d53d
No related branches found
No related tags found
No related merge requests found
......@@ -115,7 +115,6 @@ install_packages () {
fi
done;
;;
centos)
for p in $PACKAGES; do
if yum list installed "$p" >/dev/null 2>&1; then
......@@ -552,8 +551,8 @@ case $distro in
fi
;;
raspbian)
if [ "$version" == "9.4" ]; then
# Install for Raspbian 9.4
if [[ "$version" =~ ^9 ]]; then
# Install for Raspbian 9.x
tzone=$(cat /etc/timezone)
cat >/etc/apt/sources.list.d/10-buster.list <<EOL
deb http://mirrordirector.raspbian.org/raspbian/ buster main contrib non-free rpi
......@@ -574,7 +573,7 @@ EOL
progress
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
echo "* Configuring Apache."
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment