Files
docker-recorder/entrypoint.sh
Toon Schoenmakers 9661dff4e8 Updated entrypoint.sh to not forget arguments
When running as root this script would get executed as the appuser, but the possible arguments would be forgotten.
2020-08-12 15:30:36 +00:00

17 lines
410 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 appuser -- "$0" "$@"
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 "$@"