1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-23 01:39:27 +02:00
dockerfiles/ot-recorder/docker-entrypoint.sh

14 lines
264 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 ..."
mkdir -p $OTR_STORAGEDIR/last
2017-03-31 10:43:35 +02:00
chown -R owntracks:owntracks $OTR_STORAGEDIR
ot-recorder --initialize
2017-03-31 10:35:00 +02:00
fi
2017-04-01 08:30:23 +02:00
exec ot-recorder --http-host 0.0.0.0 $OTR_OPTIONS $OTR_TOPICS