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
284 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-05-22 15:53:26 +02:00
exec ot-recorder --http-host $OTR_HTTPHOST --http-port $OTR_HTTPPORT $OTR_OPTIONS