Jack 90001efc69
Some checks failed
Build and push image / Build (push) Failing after 41s
Added Motioneye
2023-08-26 00:26:48 +01:00

6 lines
394 B
Bash

#!/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"