Moved Dirs
All checks were successful
Build and push image / Build (push) Successful in 4m14s

This commit is contained in:
Jack
2023-08-26 00:54:20 +01:00
parent 90001efc69
commit 532b686ae4
2 changed files with 0 additions and 0 deletions

6
motioneye/entrypoint.sh Normal file
View File

@@ -0,0 +1,6 @@
#!/usr/bin/env sh
# We need to chown at startup time since volumes are mounted as root. This is fugly.
mkdir -p /run/motioneye
chown motion:motion /run/motioneye
[ -f '/etc/motioneye/motioneye.conf' ] || cp -a /etc/motioneye.conf.sample /etc/motioneye/motioneye.conf
exec su -g motion motion -s /bin/dash -c "LANGUAGE=en exec /usr/local/bin/meyectl startserver -c /etc/motioneye/motioneye.conf"