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

14 lines
311 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
2019-10-02 02:12:13 +02:00
exec ot-recorder --http-host $OTR_HTTPHOST --http-port $OTR_HTTPPORT $OTR_OPTIONS ${OTR_TOPICS:-owntracks/#}