mirror of
https://github.com/owntracks/docker-recorder.git
synced 2026-05-05 02:46:34 +00:00
- Default UID is 9999 (defined with EUID=9999) inside Dockerfile. - Please note that the docker volume is visible as a directory on the host under /var/lib/docker/volumes. This is normally not a problem, as this directory is not accessible by regular users on the host. - It is still possible to redefine the UID by passing -e EUID=<uid> to docker run, but that should not be necessary in most situations. This fact has been left out of the documentation as it only appeals to more advanced users (who will look at the Dockerfile directly.)
17 lines
405 B
Bash
17 lines
405 B
Bash
#!/bin/sh
|
|
|
|
# If running as root (first invocation), fix mountpoint permissions
|
|
# and re-run this script as appuser.
|
|
if [[ $(id -u) -eq 0 ]]; then
|
|
chown -R appuser:appuser /store /config
|
|
exec su -c "$0" appuser
|
|
fi
|
|
|
|
# Load Default recorder.conf if not available
|
|
if [ ! -f /config/recorder.conf ]; then
|
|
cp /etc/default/recorder.conf /config/recorder.conf
|
|
fi
|
|
|
|
ot-recorder --initialize
|
|
ot-recorder "$@"
|