mirror of
https://github.com/blakeblackshear/frigate.git
synced 2024-12-29 00:06:19 +01:00
12 lines
282 B
Plaintext
12 lines
282 B
Plaintext
|
#!/command/with-contenv bash
|
||
|
# shellcheck shell=bash
|
||
|
# Prepare the logs folder for s6-log
|
||
|
|
||
|
set -o errexit -o nounset -o pipefail
|
||
|
|
||
|
dirs=(/dev/shm/logs/frigate /dev/shm/logs/go2rtc /dev/shm/logs/nginx)
|
||
|
|
||
|
mkdir -p "${dirs[@]}"
|
||
|
chown nobody:nogroup "${dirs[@]}"
|
||
|
chmod 02755 "${dirs[@]}"
|