summaryrefslogtreecommitdiff
path: root/ec2-set-defaults.py
diff options
context:
space:
mode:
authorChuck Short <zulcss@ubuntu.com>2009-03-22 23:39:45 +0000
committerBazaar Package Importer <jamesw@ubuntu.com>2009-03-22 23:39:45 +0000
commite606fe4288e31eeef1d90a62773bdc946e650381 (patch)
tree901e260670c2fa304239a687904ad56333dd15e3 /ec2-set-defaults.py
parent58f82c2220b3137c97a377b01da04a14c64b0a1d (diff)
downloadvyos-cloud-init-e606fe4288e31eeef1d90a62773bdc946e650381.tar.gz
vyos-cloud-init-e606fe4288e31eeef1d90a62773bdc946e650381.zip
* Set the configuration file to jaunty.
* ec2-fetch-credentials: Fix typo. * ec2-set-defaults.py: - Remove timezone change when booting the instance. - Redirect output to /dev/null. * ec2-set-apt-sources.py: - Run apt-get update after the /etc/apt/sources.list and redirect the output to /dev/null. * rightscale-init: Updated rightscale-init
Diffstat (limited to 'ec2-set-defaults.py')
-rwxr-xr-xec2-set-defaults.py12
1 files changed, 4 insertions, 8 deletions
diff --git a/ec2-set-defaults.py b/ec2-set-defaults.py
index 129c46db..d7de9f1f 100755
--- a/ec2-set-defaults.py
+++ b/ec2-set-defaults.py
@@ -34,18 +34,14 @@ if zone.startswith("us"):
elif zone.startswith("eu"):
archive = "http://eu.ec2.archive.ubuntu.com/ubuntu"
-def set_utc_clock():
- os.system('ln -s -f /usr/share/zoneinfo/UTC /etc/localime')
-
def set_language(location):
if location.startswith("us"):
lang='en_US.UTF-8'
- os.system('locale-gen %s' %(lang))
- os.system('update-locale %s' %(lang))
+ os.system('locale-gen %s 2>&1 > /dev/null' %(lang))
+ os.system('update-locale %s 2>&1 > /dev/null' %(lang))
elif location.startswith("eu"):
lang='en_GB.UTF-8'
- os.system('locale-gen %s' %(lang))
- os.system('update-locale %s' %(lang))
+ os.system('locale-gen %s 2>&1 > /dev/null' %(lang))
+ os.system('update-locale %s 2>&1 > /dev/null' %(lang))
-set_utc_clock()
set_language(zone)