summaryrefslogtreecommitdiff
path: root/debian/init
diff options
context:
space:
mode:
authorChuck Short <zulcss@ubuntu.com>2009-05-13 14:41:35 +0200
committerChuck Short <zulcss@ubuntu.com>2009-05-13 14:41:35 +0200
commitdd112c3afe50c75ae9b00f142b550c6e0d95f47b (patch)
treece1843820c13f3c33dd16d34929deedf16107f37 /debian/init
parent322bf4c779a378f113e6bf60714c66298aba876d (diff)
downloadvyos-cloud-init-dd112c3afe50c75ae9b00f142b550c6e0d95f47b.tar.gz
vyos-cloud-init-dd112c3afe50c75ae9b00f142b550c6e0d95f47b.zip
* Really change the locale when setting up an instance. (LP: #341066)
* Run ec2-run-user-data script last. (LP: #373055) * Minor comment tweaks. (LP:373057)
Diffstat (limited to 'debian/init')
-rw-r--r--debian/init21
1 files changed, 10 insertions, 11 deletions
diff --git a/debian/init b/debian/init
index ea4f0acf..15345b6a 100644
--- a/debian/init
+++ b/debian/init
@@ -30,7 +30,7 @@ case "$1" in
log_end_msg 1
fi
- log_daemon_msg "Fetching EC2 login credentials"
+ log_daemon_msg "Fetching EC2 SSH keys"
if ec2-fetch-credentials 2> /dev/null
then
log_end_msg 0
@@ -38,28 +38,27 @@ case "$1" in
log_end_msg 1
fi
- log_daemon_msg "Running EC2 user data"
- if ec2-run-user-data 2>&1 | logger -t "user-data"
- then
- log_end_msg 0
- else
- log_end_msg 1
- fi
-
- log_daemon_msg "Setting hostname to EC2 public_hostname"
+ log_daemon_msg "Setting hostname to EC2 localhostname"
if ec2-set-hostname 2> /dev/null
then
log_end_msg 0
else
log_end_msg 1
fi
- log_daemon_msg "Determining EC2 availability zone"
+ log_daemon_msg "Creating /etc/apt/sources.list"
if ec2-set-apt-sources 2> /dev/null
then
log_end_msg 0
else
log_end_msg 1
fi
+ log_daemon_msg "Running EC2 user data"
+ if ec2-run-user-data 2>&1 | logger -t "user-data"
+ then
+ log_end_msg 0
+ else
+ log_end_msg 1
+ fi
;;
stop)