diff options
author | Luke Shumaker <lukeshu@sbcglobal.net> | 2016-11-23 00:12:05 -0500 |
---|---|---|
committer | Luke Shumaker <lukeshu@sbcglobal.net> | 2016-11-23 01:25:47 -0500 |
commit | 4ea091174ce896e1293689de76f7a5122c4e834e (patch) | |
tree | 0909a356f15366590510cf78957d1857bc5e445d /aurweb/git/serve.py | |
parent | e3dfb09aec084fc6bd119309ce949eaab714eae7 (diff) |
Make the instance name and domain configurable.
Diffstat (limited to 'aurweb/git/serve.py')
-rwxr-xr-x | aurweb/git/serve.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/aurweb/git/serve.py b/aurweb/git/serve.py index 476aea8..3949dbf 100755 --- a/aurweb/git/serve.py +++ b/aurweb/git/serve.py @@ -10,6 +10,8 @@ import time import aurweb.config import aurweb.db +aur_shortname = aurweb.config.get('options', 'aur_shortname'); + notify_cmd = aurweb.config.get('notifications', 'notify-cmd') repo_path = aurweb.config.get('serve', 'repo-path') @@ -345,7 +347,7 @@ def main(): if enable_maintenance: if remote_addr not in maintenance_exc: - die("The AUR is down due to maintenance. We will be back soon.") + die("The %s is down due to maintenance. We will be back soon." % (aur_shortname)) if action == 'git' and cmdargv[1] in ('upload-pack', 'receive-pack'): action = action + '-' + cmdargv[1] |