1
2
mirror of https://github.com/vimagick/dockerfiles synced 2024-06-25 00:08:49 +00:00
dockerfiles/owntracks/ot-recorder/arm/docker-entrypoint.sh
2019-10-20 09:05:35 +08:00

14 lines
311 B
Bash
Executable File

#!/bin/sh
set -xe
if ! [ -d $OTR_STORAGEDIR/last ]
then
echo "initializing ..."
mkdir -p $OTR_STORAGEDIR/last
chown -R owntracks:owntracks $OTR_STORAGEDIR
ot-recorder --initialize
fi
exec ot-recorder --http-host $OTR_HTTPHOST --http-port $OTR_HTTPPORT $OTR_OPTIONS ${OTR_TOPICS:-owntracks/#}