From e4022249741336c5c78e8fa155a13d1f71f06a04 Mon Sep 17 00:00:00 2001 From: garciadeblas Date: Tue, 30 May 2023 14:10:46 +0200 Subject: [PATCH] Add option -y to add-apt-repository in installers, always required for Ubuntu22 Change-Id: I83cbb5e3e21fb31747d8c2ce3b84bb79069ae4a1 Signed-off-by: garciadeblas --- installers/install_docker_ce.sh | 2 +- installers/install_kubeadm_cluster.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/installers/install_docker_ce.sh b/installers/install_docker_ce.sh index 90035dfe..7a15d638 100755 --- a/installers/install_docker_ce.sh +++ b/installers/install_docker_ce.sh @@ -22,7 +22,7 @@ function install_docker_ce() { sudo apt-get -qq update sudo apt-get install -y apt-transport-https ca-certificates software-properties-common curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo APT_KEY_DONT_WARN_ON_DANGEROUS_USAGE=1 apt-key add - - sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" + sudo add-apt-repository -y "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" sudo apt-get -qq update sudo apt-get install -y docker-ce # echo "Reconfiguring Docker to use systemd as cgroup driver" diff --git a/installers/install_kubeadm_cluster.sh b/installers/install_kubeadm_cluster.sh index 03b7d79b..0ec2a313 100755 --- a/installers/install_kubeadm_cluster.sh +++ b/installers/install_kubeadm_cluster.sh @@ -26,7 +26,7 @@ function install_kube() { sudo apt-get update && sudo apt-get install -y apt-transport-https sudo apt-get update && sudo apt-get install -y apt-transport-https curl -fsSL https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add - - sudo add-apt-repository "deb https://apt.kubernetes.io/ kubernetes-xenial main" + sudo add-apt-repository -y "deb https://apt.kubernetes.io/ kubernetes-xenial main" sudo apt-get update echo "Installing Kubernetes Packages ..." sudo apt-get install -y kubelet=${K8S_VERSION} kubeadm=${K8S_VERSION} kubectl=${K8S_VERSION} -- 2.25.1