diff options
| author | David Pravec <David.Pravec@danix.org> | 2010-12-24 01:51:33 +0000 |
|---|---|---|
| committer | Tarmac <> | 2010-12-24 01:51:33 +0000 |
| commit | 956f842c587bf1610f55ca3893f3b9eef924293c (patch) | |
| tree | 7d5a89e6e5bb8492dcf6a2b17d20b471a77d0bbe /nova/cloudpipe | |
| parent | 75e2cbec9eb5132a49446f1b6d563d5f43d007de (diff) | |
| parent | 24eada1bf54f973d5bd423ba51d505352321324c (diff) | |
Make nova work even when user has LANG or LC_ALL configured
Some commands are having different results when used in another language environment.
For example ifconfig output parsing fails in my language.
Also unittest using cat failed, as it didnt expect czech language in the error message.
This small patch makes it work.
Also adding myself to 'Authors' file
Diffstat (limited to 'nova/cloudpipe')
| -rwxr-xr-x | nova/cloudpipe/bootscript.template | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/nova/cloudpipe/bootscript.template b/nova/cloudpipe/bootscript.template index 11578c134..94dea3f87 100755 --- a/nova/cloudpipe/bootscript.template +++ b/nova/cloudpipe/bootscript.template @@ -19,6 +19,7 @@ # This gets zipped and run on the cloudpipe-managed OpenVPN server +export LC_ALL=C export VPN_IP=`ifconfig | grep 'inet addr:'| grep -v '127.0.0.1' | cut -d: -f2 | awk '{print $$1}'` export BROADCAST=`ifconfig | grep 'inet addr:'| grep -v '127.0.0.1' | cut -d: -f3 | awk '{print $$1}'` export DHCP_MASK=`ifconfig | grep 'inet addr:'| grep -v '127.0.0.1' | cut -d: -f4 | awk '{print $$1}'` |
