Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,11 @@ function log_warning() {

# Determine Raspbian version
version_msg="Unknown Raspbian Version"
if [ "$rasp_version" -eq "11" ]; then
if [ "$rasp_version" -eq "12" ]; then
version_msg="Raspbian 12.0 (Bookworm)"
php_version="8.3"
php_package="php${php_version} php${php_version}-cgi php${php_version}-common php${php_version}-cli php${php_version}-fpm php${php_version}-mbstring php${php_version}-mysql php${php_version}-opcache php${php_version}-curl php${php_version}-gd php${php_version}-curl php${php_version}-zip php${php_version}-xml php-redis php${php_version}-dev"
elif [ "$rasp_version" -eq "11" ]; then
version_msg="Raspbian 11.0 (Bullseye)"
php_version="7.3"
php_package="php${php_version} php${php_version}-cgi php${php_version}-common php${php_version}-cli php${php_version}-fpm php${php_version}-mbstring php${php_version}-mysql php${php_version}-opcache php${php_version}-curl php${php_version}-gd php${php_version}-curl php${php_version}-zip php${php_version}-xml php-redis php${php_version}-dev"
Expand Down Expand Up @@ -225,7 +229,12 @@ function installDependencies()
echo "Main Depepencies Successfully Installed"
fi
sudo apt-get install ffmpeg -y --fix-missing || log_error "Unable to install ffmpeg"
sudo pip3 install RPi.GPIO || log_error "Unable to install pip3 packages"
#check in RPI.GPIO is already installed system-wide
if [[ $(dpkg-query -l python3-rpi.gpio | grep python3-rpi.gpio | cut -c1-2) == ii* ]]; then
echo "RPi.GPIO already installed system-wide"
else
sudo pip3 install RPi.GPIO || log_error "Unable to install pip3 packages"
fi
if [ -f "/usr/local/bin/composer" ]; then
log_info "Composer already installed!"
else
Expand Down