aboutsummaryrefslogtreecommitdiff
path: root/ca/rpki-manage
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2014-04-05 22:42:12 +0000
committerRob Austein <sra@hactrn.net>2014-04-05 22:42:12 +0000
commitfe0bf509f528dbdc50c7182f81057c6a4e15e4bd (patch)
tree07c9a923d4a0ccdfea11c49cd284f6d5757c5eda /ca/rpki-manage
parentaa28ef54c271fbe4d52860ff8cf13cab19e2207c (diff)
Source tree reorg, phase 1. Almost everything moved, no file contents changed.
svn path=/branches/tk685/; revision=5757
Diffstat (limited to 'ca/rpki-manage')
-rwxr-xr-xca/rpki-manage13
1 files changed, 13 insertions, 0 deletions
diff --git a/ca/rpki-manage b/ca/rpki-manage
new file mode 100755
index 00000000..0d581ce9
--- /dev/null
+++ b/ca/rpki-manage
@@ -0,0 +1,13 @@
+#!/usr/bin/env python
+
+import os
+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'
+
+execute_from_command_line()