add apt update before apt install commands
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user