diff options
author | Chuck Short <zulcss@ubuntu.com> | 2009-03-22 23:39:45 +0000 |
---|---|---|
committer | Bazaar Package Importer <jamesw@ubuntu.com> | 2009-03-22 23:39:45 +0000 |
commit | e606fe4288e31eeef1d90a62773bdc946e650381 (patch) | |
tree | 901e260670c2fa304239a687904ad56333dd15e3 /ec2-fetch-credentials.py | |
parent | 58f82c2220b3137c97a377b01da04a14c64b0a1d (diff) | |
download | vyos-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-fetch-credentials.py')
-rwxr-xr-x | ec2-fetch-credentials.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ec2-fetch-credentials.py b/ec2-fetch-credentials.py index 33b4fb02..52176003 100755 --- a/ec2-fetch-credentials.py +++ b/ec2-fetch-credentials.py @@ -48,8 +48,11 @@ def setup_user_keys(k,user): def setup_root_user(k,root_config): if root_config == "1": + if not os.path.exists('/root/.ssh'): + os.mkdir('/root/.ssh/') + fp = open('/root/.ssh/authorized_keys', 'a') - fp.write("command=\"echo \'Please ssh to the ubuntu user on this host instead of root\';echo;sleep 10\" ") + fp.write("command=\"echo \'Please login as the ubuntu user rather than root user.\';echo;sleep 10\" ") fp.write(''.join(['%s\n' % key for key in keys])) fp.close() elif root_config == "0": |