parent
8e81d177e7
commit
e754f53893
@ -1,4 +1,25 @@
|
||||
#!/bin/bash
|
||||
|
||||
confdir="/media/storage/frigate/config/"
|
||||
|
||||
dnf in -y https://mirrors.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm https://mirrors.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm
|
||||
dnf in -y intel-media-driver libva-utils intel-gpu-tools podman podman-compose nano
|
||||
dnf in -y intel-media-driver libva-utils intel-gpu-tools podman podman-compose nano
|
||||
|
||||
mkdir ~/frigate
|
||||
cd ~/frigate
|
||||
curl -o docker-compose.yml https://git.noc.1nfo.services/adminbruno/frigate-docker/raw/branch/main/docker-compose.yml
|
||||
podman-compose pull
|
||||
podman-compose up -d
|
||||
podname=$(podman ps --noheading -f name=frigate | awk '{print $1; exit}')
|
||||
podman generate systemd $podname --new > container-frigate.service
|
||||
podman-compose down
|
||||
|
||||
#example config file from frigate
|
||||
curl -o config.yml https://git.noc.1nfo.services/adminbruno/frigate-docker/raw/branch/main/config.yml
|
||||
mv config.yml $confdir
|
||||
|
||||
|
||||
mv container-frigate.service /etc/systemd/system/
|
||||
systemctl daemon-reload
|
||||
systemctl enable --now podman.restart
|
||||
systemctl enable --now container-frigate.service
|
||||
Loading…
Reference in new issue