1
2
mirror of https://github.com/vimagick/dockerfiles synced 2024-06-30 18:51:24 +00:00
dockerfiles/ot-recorder/arm/docker-entrypoint.sh

15 lines
248 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 ..."
ot-recorder --initialize
mkdir -p $OTR_STORAGEDIR/last
fi
chown -R owntracks:owntracks $OTR_STORAGEDIR
exec ot-recorder --http-host 0.0.0.0 $OTR_TOPICS