1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-12 11:14:57 +02:00
dockerfiles/ot-recorder/docker-entrypoint.sh
2017-03-31 16:35:00 +08:00

15 lines
248 B
Bash
Executable File

#!/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