From 1bf80b6ec33a834a5a644f89a85f7c6f02f40112 Mon Sep 17 00:00:00 2001 From: kev Date: Fri, 31 Mar 2017 16:43:35 +0800 Subject: [PATCH] fix ot-recorder --- ot-recorder/arm/docker-entrypoint.sh | 5 ++--- ot-recorder/docker-entrypoint.sh | 5 ++--- 2 files changed, 4 insertions(+), 6 deletions(-) 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