Collection of cookbooks for Podman Quadlets
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

20 lines
568 B

#!/bin/sh
#
# Seed the Frigate configuration file on first boot.
#
# Frigate owns config.yml: the web interface writes the cameras, the masks and
# the zones back to it, and a new minor version migrates it in place. So this
# script only ever creates it when it is absent, and never touches it again.
#
set -eu
SRC=/etc/quadlets/frigate/config.yml
DST=/var/lib/virtiofs/data/frigate/config/config.yml
if [ -e "$DST" ]; then
echo "Keeping existing $DST (Frigate owns it)"
exit 0
fi
echo "Seeding $DST from $SRC"
install -m 0600 -o root -g root "$SRC" "$DST"