fall back to storing target arch in environment variable as it's used by other scripts; Update minor comments

This commit is contained in:
Rémi Bédard-Couture 2023-07-15 22:00:26 -04:00
parent 001dfc0f6e
commit b31b944d2b

View File

@ -15,8 +15,7 @@
#lxc.mount.entry: /dev/nvidia-uvm-tools dev/nvidia-uvm-tools none bind,optional,create=file #lxc.mount.entry: /dev/nvidia-uvm-tools dev/nvidia-uvm-tools none bind,optional,create=file
#Command to launch script: #Command to launch script:
#wget -qO- https://github.com/remz1337/frigate/standalone_install.sh | bash - #wget -O- https://raw.githubusercontent.com/remz1337/frigate/dev/standalone_install.sh | bash -
#Run everything as root #Run everything as root
@ -72,7 +71,8 @@ git clone https://github.com/blakeblackshear/frigate.git
cd /opt/frigate cd /opt/frigate
#export TARGETARCH=amd64 #Used in build dependencies scripts
export TARGETARCH=amd64
#apt update #apt update
#apt install -y wget xz-utils #apt install -y wget xz-utils
@ -84,8 +84,7 @@ docker/build_nginx.sh
mkdir -p /usr/local/go2rtc/bin mkdir -p /usr/local/go2rtc/bin
cd /usr/local/go2rtc/bin cd /usr/local/go2rtc/bin
#wget -qO go2rtc "https://github.com/AlexxIT/go2rtc/releases/download/v1.5.0/go2rtc_linux_${TARGETARCH}" wget -qO go2rtc "https://github.com/AlexxIT/go2rtc/releases/download/v1.5.0/go2rtc_linux_${TARGETARCH}"
wget -qO go2rtc "https://github.com/AlexxIT/go2rtc/releases/download/v1.5.0/go2rtc_linux_amd64"
chmod +x go2rtc chmod +x go2rtc
cd /opt/frigate cd /opt/frigate
@ -228,6 +227,9 @@ ldconfig
apt update apt update
apt install -y wget apt install -y wget
wget -qO- https://deb.nodesource.com/setup_16.x | bash - wget -qO- https://deb.nodesource.com/setup_16.x | bash -
sleep 1
apt install -y nodejs apt install -y nodejs
#rm -rf /var/lib/apt/lists/* #rm -rf /var/lib/apt/lists/*
npm install -g npm@9 npm install -g npm@9
@ -304,7 +306,7 @@ cp /config/config.yml.example /config/config.yml
# Camera1: # Camera1:
# ffmpeg: # ffmpeg:
# inputs: # inputs:
# - path: rtsp://user@password:192.168.1.123:554/h264Preview_01_main # - path: rtsp://user:password@192.168.1.123:554/h264Preview_01_main
# roles: # roles:
# - detect # - detect
# detect: # detect: