Fixes the DIB script

This PR adds the "-y" option to the "add-apt-repository" script to
prevent from asking the yes/no question while installing openstack
automatically.

Change-Id: Ic6c86b95da28c4a3f2ab0a4c918e291a7e1b9bb3
This commit is contained in:
Hirotaka Wakabayashi 2024-01-29 17:14:43 +09:00
parent f9fa6a674e
commit ab3563d621

View File

@ -11,7 +11,7 @@ GUEST_USERNAME=${GUEST_USERNAME:-"ubuntu"}
echo "Installing docker"
export DEBIAN_FRONTEND=noninteractive
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add -
add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu ${DIB_RELEASE} stable"
add-apt-repository -y "deb [arch=amd64] https://download.docker.com/linux/ubuntu ${DIB_RELEASE} stable"
apt-get update
apt-get install -y -qq docker-ce >/dev/null
apt-get clean