From 9987d90b06855356c4cb5f971d8e74e30c7da8d6 Mon Sep 17 00:00:00 2001 From: Jonathan Rosser Date: Thu, 3 Oct 2019 09:22:32 +0100 Subject: [PATCH] Temporary overwrite of the infra mirror for debian security repo Depends-On: https://review.opendev.org/686825 Change-Id: I23163676420498bb3fd3d0e411554ca34dfbe318 --- scripts/bootstrap-ansible.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/bootstrap-ansible.sh b/scripts/bootstrap-ansible.sh index ed3cbb99f7..6083447835 100755 --- a/scripts/bootstrap-ansible.sh +++ b/scripts/bootstrap-ansible.sh @@ -74,6 +74,10 @@ case ${DISTRO_ID} in libselinux-python python-virtualenv ;; ubuntu|debian) + # NOTE(jrosser) remove this once infra debian images point to the upstream security repo + if `/bin/grep -q "stretch" /etc/os-release` && [ -f "/etc/apt/sources.list.d/security.list" ]; then + echo "deb http://security.debian.org stretch/updates main contrib" > /etc/apt/sources.list.d/security.list + fi apt-get update DEBIAN_FRONTEND=noninteractive apt-get -y install \ git-core curl gcc netcat \