1
2
mirror of https://github.com/vimagick/dockerfiles synced 2024-06-28 09:41:20 +00:00
dockerfiles/owntracks/ot-recorder/arm/docker-entrypoint.sh

14 lines
311 B
Bash
Raw Normal View History

2017-03-31 08:35:00 +00:00
#!/bin/sh
set -xe
if ! [ -d $OTR_STORAGEDIR/last ]
then
echo "initializing ..."
mkdir -p $OTR_STORAGEDIR/last
2017-03-31 08:43:35 +00:00
chown -R owntracks:owntracks $OTR_STORAGEDIR
ot-recorder --initialize
2017-03-31 08:35:00 +00:00
fi
2019-10-02 00:12:13 +00:00
exec ot-recorder --http-host $OTR_HTTPHOST --http-port $OTR_HTTPPORT $OTR_OPTIONS ${OTR_TOPICS:-owntracks/#}