It seems knot is assuming it will always be run as user git, and it hell-bent on having /home/git as $HOME, and using this directory for just about everyting.
This is unfortunate, because some distros may already have created a git user with some other home directory — e.g., for some reason ArchLinux uses / as the git user's home directory.
The knot server is less sensitive to all this (presumably because it gets the correct parameters from environment variables set by the web server), but knot guard and knot keys are not.
proposal: knot config file#
https://tangled.org/tangled.org/core/issues/312
This will solve some of the problems.