diff --git a/ot-recorder/arm/docker-entrypoint.sh b/ot-recorder/arm/docker-entrypoint.sh index cd0b04f..6ebc8f5 100755 --- a/ot-recorder/arm/docker-entrypoint.sh +++ b/ot-recorder/arm/docker-entrypoint.sh @@ -5,10 +5,9 @@ set -xe if ! [ -d $OTR_STORAGEDIR/last ] then echo "initializing ..." - ot-recorder --initialize mkdir -p $OTR_STORAGEDIR/last + chown -R owntracks:owntracks $OTR_STORAGEDIR + ot-recorder --initialize fi -chown -R owntracks:owntracks $OTR_STORAGEDIR - exec ot-recorder --http-host 0.0.0.0 $OTR_TOPICS diff --git a/ot-recorder/docker-entrypoint.sh b/ot-recorder/docker-entrypoint.sh index cd0b04f..6ebc8f5 100755 --- a/ot-recorder/docker-entrypoint.sh +++ b/ot-recorder/docker-entrypoint.sh @@ -5,10 +5,9 @@ set -xe if ! [ -d $OTR_STORAGEDIR/last ] then echo "initializing ..." - ot-recorder --initialize mkdir -p $OTR_STORAGEDIR/last + chown -R owntracks:owntracks $OTR_STORAGEDIR + ot-recorder --initialize fi -chown -R owntracks:owntracks $OTR_STORAGEDIR - exec ot-recorder --http-host 0.0.0.0 $OTR_TOPICS