mirror of
https://github.com/vimagick/dockerfiles.git
synced 2024-12-23 01:39:27 +02:00
14 lines
284 B
Bash
Executable File
14 lines
284 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
|