From cff00a7c7dcb453caa2e2f39f910b4f873c12a21 Mon Sep 17 00:00:00 2001 From: Jim Van Fleet Date: Tue, 2 Aug 2016 16:27:02 -0400 Subject: [PATCH] Checking logs directory --- Dockerfile | 4 +++- tests/image.bats | 1 - 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 91ebc94..a8c98cb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,4 +3,6 @@ FROM bigfleet/shibboleth_idp ARG maintainer=tier ARG imagename=shibboleth_idp ARG version=3.2.1 -ENV VERSION=$version \ No newline at end of file +ENV VERSION=$version + +RUN chown -R root:root /opt/shibboleth/shibboleth-identity-provider-$version \ No newline at end of file diff --git a/tests/image.bats b/tests/image.bats index 4f0ce20..5cd7405 100644 --- a/tests/image.bats +++ b/tests/image.bats @@ -24,5 +24,4 @@ setup() { @test "Logs directory exists, owned by root" { result="$(docker run -i $maintainer/$imagename stat -c '%U' /opt/shibboleth/current/logs)" [ "$result" != 'UNKNOWN' ] - [ "$status" -eq 0 ] }