add apt update before apt install commands

This commit is contained in:
2017-07-03 21:38:24 +02:00
parent 92de84d727
commit 94edd58446

View File

@@ -1,16 +1,19 @@
export LC_ALL=C
export DEBIAN_FRONTEND=noninteractive
apt_install='apt-get install -y --no-install-recommends'
apt_install() {
apt-get update
apt-get install -y --no-install-recommends "$@"
}
apt_install_permanent() {
echo $@ | tr ' ' '\n' >> /build/permanent
$apt_install "$@"
apt_install "$@"
}
apt_install_temporary() {
echo $@ | tr ' ' '\n' >> /build/temporary
$apt_install "$@"
apt_install "$@"
}
apt_remove() {