diff options
-rwxr-xr-x | scripts/repo-install-test/run-inside-docker.sh | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/scripts/repo-install-test/run-inside-docker.sh b/scripts/repo-install-test/run-inside-docker.sh index 3dd3101..652fcd1 100755 --- a/scripts/repo-install-test/run-inside-docker.sh +++ b/scripts/repo-install-test/run-inside-docker.sh @@ -67,10 +67,19 @@ check_env() { } configure_osmocom_repo_debian() { - local http="http://download.opensuse.org/repositories/$(proj_with_slashes "$PROJ")/Debian_9.0/" + local obs_repo="download.opensuse.org/repositories/$(proj_with_slashes "$PROJ")/Debian_9.0/" + local release_key="/var/cache/apt/${PROJ}_Release.key" echo "Configuring Osmocom repository" - echo "deb $http ./" > "/etc/apt/sources.list.d/$PROJ.list" + echo "deb http://$obs_repo ./" > "/etc/apt/sources.list.d/$PROJ.list" + + # Add repository key + if ! [ -e "$release_key" ]; then + apt install -y wget + wget -O "$release_key" "https://$obs_repo/Release.key" + fi + apt-key add "$release_key" + apt-get update } |