home » zplus/clif.git
Author zPlus <zplus@peers.community> 2023-02-26 22:46:13
Committer zPlus <zplus@peers.community> 2023-02-26 22:46:13
Commit 43513aa (patch)
Tree 48610a0
Parent(s)

Add support for paths via environment variables. Allow paths to be specified as environment variables. If the variables do not exist, a default value would be assumed.


commits diff: c8b05f1..43513aa
1 file changed, 3 insertions, 3 deletionsdownload


Diffstat
-rw-r--r-- web.py 6

Diff options
View
Side
Whitespace
Context lines
Inter-hunk lines
+3/-3 M   web.py
index 823b44e..b143408
old size: 31K - new size: 31K
@@ -31,11 +31,11 @@ from pygments.formatters import HtmlFormatter
31 31
32 32 # The root folder where Gitolite stores the repositories. This is used to find the
33 33 # actual repositories.
34 - GITOLITE_REPOSITORIES_ROOT = '/home/git/repositories'
34 + GITOLITE_REPOSITORIES_ROOT = os.environ.get(GITOLITE_REPOSITORIES_ROOT, '/home/git/repositories')
35 35
36 36 # These are only used when anonymous cloning over HTTPS
37 - GITOLITE_SHELL = '/home/git/bin/gitolite-shell'
38 - GITOLITE_HTTP_HOME = '/home/git'
37 + GITOLITE_SHELL = os.environ.get(GITOLITE_SHELL, '/home/git/bin/gitolite-shell')
38 + GITOLITE_HTTP_HOME = os.environ.get(GITOLITE_HTTP_HOME, '/home/git')
39 39
40 40 # The domain of this instance. This is only really used when displaying list addresses,
41 41 # or when the domain needs to be displayed on some pages.