~raharper/+junk/virtio-maas-openstack

« back to all changes in this revision

Viewing changes to scripts/_util

  • Committer: Scott Moser
  • Date: 2013-09-24 13:54:34 UTC
  • Revision ID: smoser@ubuntu.com-20130924135434-ki4hiu321nrgsmdt
hooks/install: only install additional packages ppa on precise or quantal

Show diffs side-by-side

added added

removed removed

Lines of Context:
56
56
    sudo DEBIAN_FRONTEND=noninteractive apt-get --quiet --assume-yes "$@"
57
57
}
58
58
 
 
59
# codename_ge(dist1,dist2)
 
60
# return true if dist1 is newer or the same as dist2
 
61
codename_ge() { [[ "$1" > "$2" || "$1" == "$2" ]]; }
 
62
codename_le() { [[ "$1" < "$2" || "$1" == "$2" ]]; }
 
63
codename() { lsb_release --short --codename; }
 
64
 
 
65
 
59
66
if [ -z "$JUJU_UNIT_NAME" ]; then
60
67
    if [ -z "$VMAAS_CONFIG" ]; then
61
68
        for f in "${TOP_D}/vmaas.conf" "/etc/vmaas.conf"; do