A free open source IT asset/license management system
Support Raspbian 9.x installs. (#6554)
shinayoshic23cdb0e3197
diff --git a/snipeit.sh b/snipeit.shindex 3f93a35da5..d70365e4f0 100755--- a/snipeit.sh+++ b/snipeit.sh@@ -115,7 +115,6 @@ install_packages () {fidone;;;-centos)for p in $PACKAGES; doif yum list installed "$p" >/dev/null 2>&1; then@@ -551,9 +550,9 @@ case $distro inexit 1fi;;- raspbian)- if [ "$version" == "9.4" ]; then- # Install for Raspbian 9.4+ raspbian)+ if [[ "$version" =~ ^9 ]]; then+ # Install for Raspbian 9.xtzone=$(cat /etc/timezone)cat >/etc/apt/sources.list.d/10-buster.list <<EOLdeb http://mirrordirector.raspbian.org/raspbian/ buster main contrib non-free rpi@@ -568,13 +567,13 @@ Package: *Pin: release n=busterPin-Priority: 750EOL-+echo -n "* Updating installed packages."log "apt-get update && DEBIAN_FRONTEND=noninteractive apt-get -y upgrade" & pid=$!progressecho "* 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_packagesecho "* Configuring Apache."@@ -596,12 +595,12 @@ EOLecho "* Restarting Apache httpd."log "systemctl restart apache2"- else+ elseecho "Unsupported Raspbian version. Version found: $version"exit 1fi;;- centos)+ centos)if [[ "$version" =~ ^6 ]]; then# Install for CentOS/Redhat 6.xtzone=$(grep ZONE /etc/sysconfig/clock | tr -d '"' | sed 's/ZONE=//g');