~kees/eucalyptus/lp436977

« back to all changes in this revision

Viewing changes to debian/80-eucalyptus-url

  • Committer: Dustin Kirkland
  • Date: 2009-09-30 06:04:21 UTC
  • Revision ID: kirkland@canonical.com-20090930060421-6zl9pyitnch8hp6e
eucalyptus-ipaddr.conf, eucalyptus-common.install,
into a single, sourcable, overridable location, LP: #437058, #438602
* 80-eucalyptus-url: use the new $CLOUD_IP_ADDR value and logic

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
# Use an ip address URL for now; this could get prettier in the future,
5
5
# perhaps using the hostname.
6
6
 
7
 
interface=$(tail -n1 /proc/net/route  | awk '{print $1}')
8
 
ipaddr=$(/sbin/ifconfig "$interface" | grep "inet addr:" | sed -e "s/^.*inet addr://" -e "s/ .*$//")
9
 
printf "\nUbuntu Enterprise Cloud Administration\n  https://%s:8443/\n" "$ipaddr"
 
7
. /etc/eucalyptus/eucalyptus-ipaddr.conf
 
8
printf "\nUbuntu Enterprise Cloud Administration\n  https://%s:8443/\n" "$CLOUD_IP_ADDR"