Comment 16 for bug 1815243

Reviewed: https://review.openstack.org/635967
Committed: https://git.openstack.org/cgit/openstack/charm-glance-simplestreams-sync/commit/?id=d597eaedbb672c68b3c730ba4c039db9e4cdeaec
Submitter: Zuul
Branch: master

commit d597eaedbb672c68b3c730ba4c039db9e4cdeaec
Author: Ryan Beisner <email address hidden>
Date: Fri Feb 8 15:49:58 2019 -0600

    Update pre-install hooks to fail on error

    The pre-install operations may fail, yet that failure is not
    elevated to the user. This masks the failure and makes early
    package install issues difficult to troubleshoot.

    If the basic pre-install script fails, the charm should not
    proceed to later hooks as the requirements may not be met.

    Hashbangs for bash should specify -e (errexit) on all of the
    pre-install bash scripts.

    Change-Id: I61301f3ed953f685bca3c4060907ccda8cec6f49
    Closes-bug: #1815243
    Partial-bug: #1815231