Since *frigate.service* runs as root, the directories created by `StateDirectory` are owned by root. The processes inside the container, therefore, cannot access them. Thus, we have to use `systemd-tmpfiles` to create the state directories with the appropriate permissions.
5 lines
177 B
Plaintext
5 lines
177 B
Plaintext
d /var/lib/frigate 0755 frigate frigate
|
|
d /var/lib/frigate/config 0755 frigate frigate
|
|
d /var/lib/frigate/media 0755 frigate frigate
|
|
d /var/lib/frigate/tmp 0755 frigate frigate
|