1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-16 11:37:34 +02:00
dockerfiles/ot-recorder/arm/docker-entrypoint.sh

15 lines
248 B
Bash
Raw Normal View History

2017-03-31 10:35:00 +02:00
#!/bin/sh
set -xe
if ! [ -d $OTR_STORAGEDIR/last ]
then
echo "initializing ..."
ot-recorder --initialize
mkdir -p $OTR_STORAGEDIR/last
fi
chown -R owntracks:owntracks $OTR_STORAGEDIR
exec ot-recorder --http-host 0.0.0.0 $OTR_TOPICS