fix: correct noninteractive apt commands in installer
This commit is contained in:
+6
-6
@@ -36,8 +36,8 @@ as_root() {
|
||||
|
||||
install_base_packages() {
|
||||
log "Installing required base packages"
|
||||
as_root apt-get update
|
||||
as_root DEBIAN_FRONTEND=noninteractive apt-get install -y \
|
||||
as_root env DEBIAN_FRONTEND=noninteractive apt-get update
|
||||
as_root env DEBIAN_FRONTEND=noninteractive apt-get install -y \
|
||||
ca-certificates \
|
||||
curl \
|
||||
git \
|
||||
@@ -62,14 +62,14 @@ install_docker_if_needed() {
|
||||
printf 'deb [arch=%s signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu %s stable\n' "$arch" "$codename" |
|
||||
as_root tee /etc/apt/sources.list.d/docker.list >/dev/null
|
||||
|
||||
as_root apt-get update
|
||||
as_root DEBIAN_FRONTEND=noninteractive apt-get install -y docker-ce docker-ce-cli containerd.io
|
||||
as_root env DEBIAN_FRONTEND=noninteractive apt-get update
|
||||
as_root env DEBIAN_FRONTEND=noninteractive apt-get install -y docker-ce docker-ce-cli containerd.io
|
||||
fi
|
||||
|
||||
if ! docker compose version >/dev/null 2>&1; then
|
||||
log "Installing Docker Compose plugin"
|
||||
as_root apt-get update
|
||||
as_root DEBIAN_FRONTEND=noninteractive apt-get install -y docker-compose-plugin
|
||||
as_root env DEBIAN_FRONTEND=noninteractive apt-get update
|
||||
as_root env DEBIAN_FRONTEND=noninteractive apt-get install -y docker-compose-plugin
|
||||
else
|
||||
log "Docker Compose plugin is already installed"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user