github.com/niedbalski/juju@v0.0.0-20190215020005-8ff100488e47/acceptancetests/repository/trusty/haproxy/hooks/install (about)

     1  #!/bin/sh
     2  
     3  set -eu
     4  
     5  apt_get_install() {
     6      DEBIAN_FRONTEND=noninteractive apt-get -y -qq -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" install $@
     7  }
     8  
     9  juju-log 'Invoking charm-pre-install hooks'
    10  [ -d exec.d ] && ( for f in exec.d/*/charm-pre-install; do [ -x $f ] && /bin/sh -c "$f"; done )
    11  
    12  # Install missing python-yaml library
    13  # GZ: local change, also python-apt which is missing from rackspace images
    14  apt-get install -y python-yaml python-apt
    15  
    16  juju-log 'Invoking python-based install hook'
    17  python hooks/hooks.py install