Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Pikrellcam installation script to support Bullseye #89

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
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
10 changes: 9 additions & 1 deletion install-pikrellcam.sh
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ echo "Starting PiKrellCam install..."
JESSIE=8
STRETCH=9
BUSTER=10
BULLSEYE=11

V=`cat /etc/debian_version`
#DEB_VERSION="${V:0:1}"
Expand All @@ -121,7 +122,11 @@ DEB_VERSION="${V%.*}"

PACKAGE_LIST=""

if ((DEB_VERSION >= BUSTER))
if ((DEB_VERSION >= BULLSEYE))
then
AV_PACKAGES="ffmpeg"
PHP_PACKAGES="php7.4 php7.4-common php7.4-fpm"
elif ((DEB_VERSION >= BUSTER))
then
AV_PACKAGES="ffmpeg"
PHP_PACKAGES="php7.3 php7.3-common php7.3-fpm"
Expand Down Expand Up @@ -313,6 +318,9 @@ sudo sed -i "s|PIKRELLCAM_WWW|$PWD/www|; \
s/PORT/$PORT/" \
/etc/nginx/sites-available/pikrellcam

if ((DEB_VERSION >= BULLSEYE))
then
sudo sed -i "s/php5/php\/php7.4/" /etc/nginx/sites-available/pikrellcam
if ((DEB_VERSION >= BUSTER))
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line must be changed to elif ((DEB_VERSION >= BUSTER)) otherwise the bash interpreter colapses and the installation does finish with wierd error abuot unexpected end of file.

then
sudo sed -i "s/php5/php\/php7.3/" /etc/nginx/sites-available/pikrellcam
Expand Down