From f8a6aa325055637755f8e0ff156d698e8b2191bf Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Sat, 4 Dec 2021 20:06:02 +0100 Subject: [PATCH] root: fix missing certs directly Signed-off-by: Jens Langhammer --- Dockerfile | 4 ++-- lifecycle/ak | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 82de5c25a..46fde8803 100644 --- a/Dockerfile +++ b/Dockerfile @@ -64,8 +64,8 @@ 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 /backups && \ - chown authentik:authentik /backups + mkdir /backups /certs && \ + chown authentik:authentik /backups /certs COPY ./authentik/ /authentik COPY ./pyproject.toml / diff --git a/lifecycle/ak b/lifecycle/ak index accd86db8..eaa0ace02 100755 --- a/lifecycle/ak +++ b/lifecycle/ak @@ -24,7 +24,7 @@ function check_if_root { getent group $DOCKER_GID || groupadd -f -g $DOCKER_GID docker usermod -a -G $DOCKER_GID authentik # since the name of the group might not be docker, we need to lookup the group id - GROUP_NAME=$(getent group $DOCKER_GID | sed 's/:/\n/g' | head -1) + GROUP_NAME=$(getent group $DOCKER_GID | sed 's/:/\n/g' | head -1) GROUP="authentik:${GROUP_NAME}" fi # Fix permissions of backups and media