From c3ba031b7feb74bfbaf54fd73b599c95ed0df765 Mon Sep 17 00:00:00 2001 From: Chuck Short Date: Mon, 6 Apr 2009 23:04:49 +0100 Subject: * debian/control: - Add python-cheetah and python-apt as a dependency. * debian/ec2-config.cfg: - Remove distro due to the change in ec2-set-apt-sources.py * debian/inistall - Install the templates in the right place. * ec2-set-apt-sources.py: - Use python-apt to update the sources.list. --- debian/init | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'debian/init') diff --git a/debian/init b/debian/init index 113d8700..ea4f0acf 100644 --- a/debian/init +++ b/debian/init @@ -38,6 +38,14 @@ 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" if ec2-set-hostname 2> /dev/null then @@ -53,14 +61,6 @@ 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 - ;; stop) exit 0 -- cgit v1.2.3