This commit is contained in:
6
motioneye/entrypoint.sh
Normal file
6
motioneye/entrypoint.sh
Normal 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"
|
Reference in New Issue
Block a user