From f308ac796b6e24b216b68aeac0d456d21c3b37f3 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Wed, 23 Nov 2016 00:12:05 -0500 Subject: Make the instance name and domain configurable. --- aurweb/git/serve.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'aurweb/git/serve.py') diff --git a/aurweb/git/serve.py b/aurweb/git/serve.py index 476aea8..1d7d38d 100755 --- a/aurweb/git/serve.py +++ b/aurweb/git/serve.py @@ -10,6 +10,8 @@ import time import aurweb.config import aurweb.db +branding_shortname = aurweb.config.get('options', 'branding_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." % (branding_shortname)) if action == 'git' and cmdargv[1] in ('upload-pack', 'receive-pack'): action = action + '-' + cmdargv[1] -- cgit v1.2.3-54-g00ecf