diff --git a/src/hooks/install b/src/hooks/install index 780bb71..9c2707c 100755 --- a/src/hooks/install +++ b/src/hooks/install @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/bash -e # Wrapper to deal with newer Ubuntu versions that don't have py2 installed # by default. @@ -9,7 +9,7 @@ check_and_install() { fi } -if [[ $(lsb_release -sc) -eq "trusty" ]]; then +if [[ "$(lsb_release -sc)" == "trusty" ]]; then juju-log "Enabling cloud archive to work around old trusty tools" # Add a random cloud archive for the Openstack python3 clients add-apt-repository --yes ppa:ubuntu-cloud-archive/mitaka-staging