aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rwxr-xr-xtools/init-runonce7
1 files changed, 7 insertions, 0 deletions
diff --git a/tools/init-runonce b/tools/init-runonce
index 25d05cf61..1cc846392 100755
--- a/tools/init-runonce
+++ b/tools/init-runonce
@@ -5,6 +5,13 @@
# configures networking and nova quotas to allow 40 m1.small instances
# to be created.
+# Sanitize language settings to avoid commands bailing out
+# with "unsupported locale setting" errors.
+unset LANG
+unset LANGUAGE
+LC_ALL=C
+export LC_ALL
+
# Move to top level directory
REAL_PATH=$(python -c "import os,sys;print os.path.realpath('$0')")
cd "$(dirname "$REAL_PATH")/.."