From e606fe4288e31eeef1d90a62773bdc946e650381 Mon Sep 17 00:00:00 2001 From: Chuck Short Date: Sun, 22 Mar 2009 23:39:45 +0000 Subject: * 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 --- ec2-set-defaults.py | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'ec2-set-defaults.py') 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) -- cgit v1.2.3