Alex Kavanagh 7ea0be57de Convert the charm to Python 3
Change-Id: I8c8df27be189098be363d0ea125f86e59fdbb020
2019-03-13 12:29:49 +00:00

19 lines
289 B
Bash
Executable File

#!/bin/bash -e
declare -a DEPS=('apt')
check_and_install() {
pkg="${1}-${2}"
if ! dpkg -s ${pkg} 2>&1 > /dev/null; then
apt-get -y install ${pkg}
fi
}
PYTHON="python3"
for dep in ${DEPS[@]}; do
check_and_install ${PYTHON} ${dep}
done
exec ./hooks/install.real