Merge "Update pre-install hooks to fail on error"

This commit is contained in:
Zuul 2019-02-12 22:19:34 +00:00 committed by Gerrit Code Review
commit 5e86d70e71

View File

@ -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