From 56f7f4228ba57ebf439a6caeed3e5744da206342 Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Wed, 11 Dec 2024 01:17:54 +0100 Subject: [PATCH] Fix ssh key permission error --- scripts/Common/Software/docker/services/forgejo/main.fish | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/Common/Software/docker/services/forgejo/main.fish b/scripts/Common/Software/docker/services/forgejo/main.fish index 0e453e1d..7806187d 100755 --- a/scripts/Common/Software/docker/services/forgejo/main.fish +++ b/scripts/Common/Software/docker/services/forgejo/main.fish @@ -70,8 +70,9 @@ begin yq "$envKey.USER_GID = $gid" | sudo tee "$config" >/dev/null - sudo mkdir -p "$dir" + and sudo mkdir -p "$dir" and sudo chown -R $uid:$gid "$dir" + and sudo -u "#$uid" mkdir -p ~"$user"/.ssh rm "$file" set port (yq (getSSHPortKey) "$overrides" | extractPort)