diff options
author | Rob Austein <sra@hactrn.net> | 2014-09-16 18:29:46 +0000 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2014-09-16 18:29:46 +0000 |
commit | 180a9c09f9705283e11caa2df408e6b2353f3b9d (patch) | |
tree | a0861ddd006017e9f4fe754bd1abefa36a9a73cb /ca/rpki-manage | |
parent | c02686daf6dcc4175f119adc5d19261f577b2856 (diff) | |
parent | 7c2fb9ca36f120369797072e534041daae6cd8f9 (diff) |
Merge changes from branches/tk713 into branches/tk705. See #705, #713.
svn path=/branches/tk705/; revision=5956
Diffstat (limited to 'ca/rpki-manage')
-rwxr-xr-x | ca/rpki-manage | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/ca/rpki-manage b/ca/rpki-manage index 0d581ce9..db1e9ce3 100755 --- a/ca/rpki-manage +++ b/ca/rpki-manage @@ -5,9 +5,20 @@ from django.core.management import execute_from_command_line # django-admin seems to have problems creating the superuser account when # $LANG is unset or is set to something totally incompatible with UTF-8. -if os.environ.get('LANG') in (None, "", "C"): - os.environ['LANG'] = 'en_US.UTF-8' -os.environ['DJANGO_SETTINGS_MODULE'] = 'rpki.gui.default_settings' +if os.environ.get("LANG") in (None, "", "C"): + os.environ["LANG"] = "en_US.UTF-8" + +# Where to find the Django settings module + +os.environ.update(DJANGO_SETTINGS_MODULE = "rpki.django_settings") + +# We don't know whether we're being used to configure the GUI or not +# (well, not without examining the specific command, which we'd like +# to avoid). Default to enabling the GUI so that such commands will +# work, but allow the user to override via the environment variable. + +if not os.environ.get("RPKI_GUI_ENABLE"): + os.environ["RPKI_GUI_ENABLE"] = "yes" execute_from_command_line() |