1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-25 02:04:06 +02:00
dockerfiles/ot-recorder/docker-entrypoint.sh

14 lines
251 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
exec ot-recorder --http-host 0.0.0.0 $OTR_TOPICS