From e754f538930236029670770484d9850beff3236d Mon Sep 17 00:00:00 2001 From: adminbruno Date: Fri, 15 Mar 2024 15:45:14 -0400 Subject: [PATCH] =?UTF-8?q?Mise=20=C3=A0=20jour=20de=20'prepare-inside-fed?= =?UTF-8?q?ora-lxc.sh'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- prepare-inside-fedora-lxc.sh | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/prepare-inside-fedora-lxc.sh b/prepare-inside-fedora-lxc.sh index dd731bc..dcb885d 100644 --- a/prepare-inside-fedora-lxc.sh +++ b/prepare-inside-fedora-lxc.sh @@ -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 \ No newline at end of file +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 \ No newline at end of file