From 9acec235a6c47c3bede917187808a8acd1369050 Mon Sep 17 00:00:00 2001 From: "Rafael G. Martins" Date: Wed, 30 May 2018 22:19:59 +0200 Subject: git-receiver: allow users to change the base directory this is useful mostly for shared environments that just provide one shell user. --- man/blogc-git-receiver.1.ronn | 23 +++++++++++++++++------ 1 file changed, 17 insertions(+), 6 deletions(-) (limited to 'man/blogc-git-receiver.1.ronn') diff --git a/man/blogc-git-receiver.1.ronn b/man/blogc-git-receiver.1.ronn index 355aa75..7386909 100644 --- a/man/blogc-git-receiver.1.ronn +++ b/man/blogc-git-receiver.1.ronn @@ -145,13 +145,24 @@ mirror, you can run its `post-receive` hook manually in the server: WARNING: If you push manually and your server's repository is empty, you'll clean your mirror repository. -## ENVIRONMENT VARIABLES +## ENVIRONMENT -`blogc-git-receiver` will export an environment variable called `BLOGC_GIT_RECEIVER` -when calling `gmake` to build websites. This variable can be used to enable building -of content that should only be built when running in production environment, for -example. This variable will not be added when using blogc-make(1), whose builds are -always considered to be "production" (blogc-make(1) is never called with `-D`). +The following variable can be set in the SSH Server (usually in `~/.ssh/environment`) +to change `blogc-git-receiver` behaviour: + + * `BLOGC_GIT_RECEIVER_BASEDIR`: + Path to a directory that should be used by `blogc-git-receiver` instead of the + user's home directory. Useful for shared hosting environments that only provide + one shell user. + +The following variable is exported by `blogc-git-receiver` when building websites +with make(1): + + * `BLOGC_GIT_RECEIVER=1`: + This variable can be used to enable building of content that should only be + built when running in production environment, for example. This variable will + not be exported when using blogc-make(1), whose builds are always considered to + be "production" (blogc-make(1) is never called with `-D`). ## BUGS -- cgit v1.2.3-18-g5258