mirror of
https://github.com/vimagick/dockerfiles.git
synced 2024-12-25 02:04:06 +02:00
15 lines
248 B
Bash
Executable File
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
|