Monorepo for Tangled tangled.org

Change user that knot runs under #380

closed opened by cyrneko.bsky.social

Right now, tangled's knot server will always try reading some things from /home/git/, like /home/git/log which is hard-coded to that value for server (but not for the keys subcommand)

I ask for the ability to either:

  1. change the user that tangled's knot server runs under (i.e via env)
  2. allow changing the log directory via .knot.env
  3. default to using whoami to determine the current user instead of hard-coded git

The reason that the default setup doesn't work for me is because the git user is already handled by Forgejo, and I was merely aiming to test out Tangled's knotserver on our infra

I have tried simply replacing /home/git/log in keyfetch/keyfetch.go but that seems to have caused it to respond with fatal: '' does not appear to be a git repository when trying to actually push anything.

cyrneko.bsky.social (author)

for context, if it matters, it really was just a one-line change that I applied:

diff --git a/keyfetch/keyfetch.go b/keyfetch/keyfetch.go
index 9eb6495f..1716cb78 100644
--- a/keyfetch/keyfetch.go
+++ b/keyfetch/keyfetch.go
@@ -38,7 +38,7 @@ func Command() *cli.Command {
                        &cli.StringFlag{
                                Name:  "log-path",
                                Usage: "path to log file",
-                               Value: "/home/git/log",
+                               Value: "/home/tangled/log",
                        },
                },
        }
cyrneko.bsky.social (author)

oh oops, I figured out I just had to pass -log-path in sshd's config, that doesn't however change that pushing, pulling and cloning don't work. :(

cyrneko.bsky.social (author)

alright ok disregard, I fixed it.

sign up or login to add to the discussion
Labels

None yet.

area

None yet.

assignee

None yet.

Participants 1
AT URI
at://did:plc:usl4pnhyasr2moto7elbvhw6/sh.tangled.repo.issue/3mcrvoq7bwb22