26 lines
933 B
Bash
Executable File
26 lines
933 B
Bash
Executable File
#!/bin/bash
|
|
# Wrapper to deal with newer Ubuntu versions that don't have py2 installed
|
|
# by default.
|
|
|
|
check_and_install() {
|
|
pkg="${1}"
|
|
if ! dpkg -s ${pkg} 2>&1 > /dev/null; then
|
|
apt-get -y install ${pkg}
|
|
fi
|
|
}
|
|
status-set maintenance "Install hook running"
|
|
|
|
juju-log "Installing tox"
|
|
check_and_install 'tox'
|
|
|
|
declare -a DEPS=('libssl-dev' 'libffi-dev' 'apt' 'python3-netaddr' 'python3-netifaces' 'python3-pip' 'python3-yaml' 'python-cinderclient' 'python-glanceclient' 'python-heatclient' 'python-keystoneclient' 'python-neutronclient' 'python-novaclient' 'python-swiftclient' 'python-ceilometerclient' 'openvswitch-test' 'python3-cinderclient' 'python3-glanceclient' 'python3-heatclient' 'python3-keystoneclient' 'python3-neutronclient' 'python3-novaclient' 'python3-swiftclient' 'python3-ceilometerclient')
|
|
|
|
|
|
PYTHON="python"
|
|
|
|
for dep in ${DEPS[@]}; do
|
|
check_and_install ${dep}
|
|
done
|
|
|
|
exec ./hooks/install.real
|