瀏覽代碼

add php7.2 repo if on stretch

php7-stretch
Nico Rey 3 年之前
父節點
當前提交
87ec3ac0ff
共有 1 個文件被更改,包括 8 次插入0 次删除
  1. +8
    -0
      install.sh

+ 8
- 0
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 \


Loading…
取消
儲存