From 87ec3ac0fffb18cca1629ce8074fb029c52bf9d9 Mon Sep 17 00:00:00 2001 From: Nico Rey Date: Tue, 5 Jan 2021 21:55:26 -0300 Subject: [PATCH] add php7.2 repo if on stretch --- install.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/install.sh b/install.sh index 366c048..b7349c1 100755 --- a/install.sh +++ b/install.sh @@ -40,6 +40,14 @@ fi ### Install required packages log_running "Installing required packages..." + +raspbian_version="$(lsb_release -c --short)" + +if [ "$raspbian_version" == "stretch" ]; then + wget -q https://packages.sury.org/php/apt.gpg -O- | sudo apt-key add - + echo "deb https://packages.sury.org/php/ stretch main" | sudo tee /etc/apt/sources.list.d/php7.list +fi + sudo apt update -yq sudo apt install -yq predict \ python-setuptools \