diff options
Diffstat (limited to 'debian/init')
-rw-r--r-- | debian/init | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/debian/init b/debian/init index e28edd06..1e5a36c1 100644 --- a/debian/init +++ b/debian/init @@ -16,6 +16,10 @@ NAME=ec2-init . /lib/lsb/init-functions +if [ ! -d /var/run/ec2 ]; then + mkdir /var/run/ec2 +fi + case "$1" in start) log_daemon_msg "Fetching EC2 login credentials" @@ -51,6 +55,13 @@ case "$1" in else log_end_msg 1 fi + log_daemon_msg "Determining EC2 availability zone" + if ec2-set-apt-sources.py 2> /dev/null + then + log_end_msg 0 + else + log_end_msg 1 + fi ;; stop) |