From 634ea61b50f91c6f4e1f1bd62537d847115106a6 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Fri, 14 May 2021 00:50:20 +0200 Subject: [PATCH] lifecycle: check if group of docker socket exists Signed-off-by: Jens Langhammer --- lifecycle/bootstrap.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/lifecycle/bootstrap.sh b/lifecycle/bootstrap.sh index bfda8dba7..e871cc38d 100755 --- a/lifecycle/bootstrap.sh +++ b/lifecycle/bootstrap.sh @@ -13,6 +13,7 @@ function check_if_root { # Get group ID of the docker socket, so we can create a matching group and # add ourselves to it DOCKER_GID=$(stat -c '%g' $SOCKET) + getent group $DOCKER_GID || groupadd -f -g $DOCKER_GID docker usermod -a -G $DOCKER_GID authentik fi # Fix permissions of backups and media