2019-02-08 15:46:55 -06:00
|
|
|
#!/bin/bash -e
|
2017-11-24 09:21:44 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
}
|
|
|
|
|
2019-03-13 12:29:17 +00:00
|
|
|
PYTHON="python3"
|
2017-11-24 09:21:44 +00:00
|
|
|
|
|
|
|
for dep in ${DEPS[@]}; do
|
|
|
|
check_and_install ${PYTHON} ${dep}
|
|
|
|
done
|
|
|
|
|
|
|
|
exec ./hooks/install.real
|