pull/2704/head
Sander Schutten 1 year ago
parent 24a15c8c2a
commit 62dc6f541c
  1. 4
      ct/frigate.sh
  2. 8
      install/frigate-install.sh

@ -58,8 +58,8 @@ header_info
if [[ ! -d /opt/frigate ]]; then msg_error "No ${APP} Installation Found!"; exit; fi if [[ ! -d /opt/frigate ]]; then msg_error "No ${APP} Installation Found!"; exit; fi
msg_info "Updating Frigate LXC" msg_info "Updating Frigate LXC"
cd /opt/frigate cd /opt/frigate
docker compose pull docker compose pull -q
docker compose up -d docker compose up -d -q
msg_ok "Updated Frigate LXC" msg_ok "Updated Frigate LXC"
exit exit
} }

@ -161,14 +161,12 @@ msg_ok "Frigate media folder created at /media/frigate"
msg_info "Downloading sample video file" msg_info "Downloading sample video file"
cd /media/frigate cd /media/frigate
wget https://github.com/intel-iot-devkit/sample-videos/raw/master/person-bicycle-car-detection.mp4 wget -q https://github.com/intel-iot-devkit/sample-videos/raw/master/person-bicycle-car-detection.mp4
msg_ok "Sample video file downloaded" msg_ok "Sample video file downloaded"
msg_info "Creating Frigate docker compose file" msg_info "Creating Frigate docker compose file"
mkdir -p /opt/frigate mkdir -p /opt/frigate
cat >/opt/frigate/docker-compose.yml <<'EOL' cat >/opt/frigate/docker-compose.yml <<'EOL'
version: "3.9"
services: services:
frigate: frigate:
container_name: frigate container_name: frigate
@ -203,8 +201,8 @@ msg_ok "Frigate docker compose file created at /opt/frigate/docker-compose.yml"
msg_info "Downloading Frigate containers" msg_info "Downloading Frigate containers"
cd /opt/frigate cd /opt/frigate
docker compose pull docker compose pull -q
docker compose up -d docker compose up -d -q
msg_ok "Frigate downloaded and started" msg_ok "Frigate downloaded and started"
motd_ssh motd_ssh

Loading…
Cancel
Save