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

14 lines
264 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 0.0.0.0 $OTR_OPTIONS $OTR_TOPICS