frigate: fix serving of clips
Frigate uses string concat to create some paths, which relies on the cache path ending with a trailing slash. I've meanwhile proposed a fix upstream, that will likely be part of the next release.
This commit is contained in:
parent
8175297e0c
commit
5b3f58125e
@ -92,11 +92,11 @@ python.pkgs.buildPythonApplication rec {
|
|||||||
|
|
||||||
substituteInPlace frigate/const.py \
|
substituteInPlace frigate/const.py \
|
||||||
--replace "/media/frigate" "/var/lib/frigate" \
|
--replace "/media/frigate" "/var/lib/frigate" \
|
||||||
--replace "/tmp/cache" "/var/cache/frigate"
|
--replace "/tmp/cache" "/var/cache/frigate/"
|
||||||
|
|
||||||
substituteInPlace frigate/http.py \
|
substituteInPlace frigate/http.py \
|
||||||
--replace "/opt/frigate" "${placeholder "out"}/${python.sitePackages}" \
|
--replace "/opt/frigate" "${placeholder "out"}/${python.sitePackages}" \
|
||||||
--replace "/tmp/cache/" "/var/cache/frigate"
|
--replace "/tmp/cache/" "/var/cache/frigate/"
|
||||||
|
|
||||||
substituteInPlace frigate/output.py \
|
substituteInPlace frigate/output.py \
|
||||||
--replace "/opt/frigate" "${placeholder "out"}/${python.sitePackages}"
|
--replace "/opt/frigate" "${placeholder "out"}/${python.sitePackages}"
|
||||||
|
Loading…
Reference in New Issue
Block a user