mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-09 23:24:06 -08:00
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
13
snipeit.sh
13
snipeit.sh
|
@ -115,7 +115,6 @@ install_packages () {
|
|||
fi
|
||||
done;
|
||||
;;
|
||||
|
||||
centos)
|
||||
for p in $PACKAGES; do
|
||||
if yum list installed "$p" >/dev/null 2>&1; then
|
||||
|
@ -551,9 +550,9 @@ case $distro in
|
|||
exit 1
|
||||
fi
|
||||
;;
|
||||
raspbian)
|
||||
if [ "$version" == "9.4" ]; then
|
||||
# Install for Raspbian 9.4
|
||||
raspbian)
|
||||
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."
|
||||
|
@ -596,12 +595,12 @@ EOL
|
|||
|
||||
echo "* Restarting Apache httpd."
|
||||
log "systemctl restart apache2"
|
||||
else
|
||||
else
|
||||
echo "Unsupported Raspbian version. Version found: $version"
|
||||
exit 1
|
||||
fi
|
||||
;;
|
||||
centos)
|
||||
centos)
|
||||
if [[ "$version" =~ ^6 ]]; then
|
||||
# Install for CentOS/Redhat 6.x
|
||||
tzone=$(grep ZONE /etc/sysconfig/clock | tr -d '"' | sed 's/ZONE=//g');
|
||||
|
|
Loading…
Reference in a new issue