From d9675695fe8bf5f15fc75585e17de5a23b795a3e Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Wed, 9 Mar 2022 21:56:18 +0100 Subject: [PATCH] root: remove backup remainders Signed-off-by: Jens Langhammer --- Dockerfile | 4 ++-- docker-compose.yml | 3 +-- lifecycle/ak | 2 +- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 172d2092e..54c8fb14f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -60,9 +60,9 @@ RUN apt-get update && \ apt-get clean && \ rm -rf /tmp/* /var/lib/apt/lists/* /var/tmp/ && \ adduser --system --no-create-home --uid 1000 --group --home /authentik authentik && \ - mkdir -p /backups /certs /media && \ + mkdir -p /certs /media && \ mkdir -p /authentik/.ssh && \ - chown authentik:authentik /backups /certs /media /authentik/.ssh + chown authentik:authentik /certs /media /authentik/.ssh COPY ./authentik/ /authentik COPY ./pyproject.toml / diff --git a/docker-compose.yml b/docker-compose.yml index 0c91518f5..d6d49d985 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -49,11 +49,10 @@ services: AUTHENTIK_POSTGRESQL__PASSWORD: ${PG_PASS} # AUTHENTIK_ERROR_REPORTING__ENABLED: "true" # This is optional, and can be removed. If you remove this, the following will happen - # - The permissions for the /backups and /media folders aren't fixed, so make sure they are 1000:1000 + # - The permissions for the /media folders aren't fixed, so make sure they are 1000:1000 # - The docker socket can't be accessed anymore user: root volumes: - - ./backups:/backups - ./media:/media - ./certs:/certs - /var/run/docker.sock:/var/run/docker.sock diff --git a/lifecycle/ak b/lifecycle/ak index e41cddfc0..5367d02fb 100755 --- a/lifecycle/ak +++ b/lifecycle/ak @@ -28,7 +28,7 @@ function check_if_root { GROUP="authentik:${GROUP_NAME}" fi # Fix permissions of backups and media - chown -R authentik:authentik /media /backups /certs + chown -R authentik:authentik /media /certs chpst -u authentik:$GROUP env HOME=/authentik $1 }