From a84a5ff4ea531c89324f4eaad63b062723aa8501 Mon Sep 17 00:00:00 2001 From: david-i-berry Date: Tue, 20 Aug 2024 14:48:54 +0200 Subject: [PATCH] Linter fix. --- .github/workflows/test-docker.yml | 5 +++-- docker/entrypoint.sh | 5 ----- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/.github/workflows/test-docker.yml b/.github/workflows/test-docker.yml index b1ab17a..76cf402 100644 --- a/.github/workflows/test-docker.yml +++ b/.github/workflows/test-docker.yml @@ -19,14 +19,15 @@ jobs: working-directory: docker/tests run: | # create user for wis2downloader - sudo usermod -aG docker $(whoami) + sudo usermod -aG docker "$(whoami)" docker compose build # build containers mkdir ./data # make sure data directory exists sudo chmod 770 ./data # update permissions so group read / write - name: Run containers working-directory: docker/tests run: | - export DOCKER_GID="$(getent group docker | cut -d: -f3)" + DOCKER_GID="$(getent group docker | cut -d: -f3)" + export DOCKER_GID docker compose up -d - name: Run CLI tests working-directory: docker/tests diff --git a/docker/entrypoint.sh b/docker/entrypoint.sh index 085b6a7..19e4fe1 100644 --- a/docker/entrypoint.sh +++ b/docker/entrypoint.sh @@ -1,10 +1,5 @@ #!/bin/bash echo "Download directory in container: $DOWNLOAD_DIR" - -ls -althF -ls -althF /home/wis2downloader/app -ls -althF /home/wis2downloader/app/data - # ensure DOWNLOAD_DIR exists if [ ! -d "$DOWNLOAD_DIR" ]; then echo "Creating download directory: $DOWNLOAD_DIR"