From a998878f87ce9d5fc83ab058aa7cadf272f3469a Mon Sep 17 00:00:00 2001 From: Bram Prieshof Date: Wed, 24 Nov 2021 16:06:28 +0100 Subject: [PATCH] Alpine: set repo to use image.release instead of latest-stable --- CT-Build/Alpine.yaml | 4 ++-- Scripts/UpdateIMGBuildFile-CacheAndRepo.sh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CT-Build/Alpine.yaml b/CT-Build/Alpine.yaml index 76b0c1e..2fe5b0c 100644 --- a/CT-Build/Alpine.yaml +++ b/CT-Build/Alpine.yaml @@ -550,8 +550,8 @@ packages: - name: /etc/apk/repositories url: |- #StartREPOS - http://192.168.200.20/alpine//latest-stable/main - http://192.168.200.20/alpine/latest-stable/community + http://192.168.200.20/alpine//v{{ image.release }}/main + http://192.168.200.20/alpine/v{{ image.release }}/community #EndREPOS {% if image.variant == "ddns" %}@TestingEdge http://dl-4.alpinelinux.org/alpine/edge/testing{% endif %} diff --git a/Scripts/UpdateIMGBuildFile-CacheAndRepo.sh b/Scripts/UpdateIMGBuildFile-CacheAndRepo.sh index 173c21d..7aea2f8 100644 --- a/Scripts/UpdateIMGBuildFile-CacheAndRepo.sh +++ b/Scripts/UpdateIMGBuildFile-CacheAndRepo.sh @@ -53,7 +53,7 @@ sed -i -e '/#InitDownloadREPO/a \ url: '$AlpineRepo'' CT-Build/Alpine.yaml #AlpineRepo sed -i -n '/#StartREPOS/{:a;N;/#EndREPOS/!ba;N;s/.*\n/#HereREPO\n/};p' CT-Build/Alpine.yaml -sed -i -e 's#\#HereREPO#\ \#StartREPOS\n\ '$AlpineRepo/latest-stable/main'\n\ '$AlpineRepo'latest-stable/community\n\ \#EndREPOS#g' CT-Build/Alpine.yaml +sed -i -e 's#\#HereREPO#\ \#StartREPOS\n\ '$AlpineRepo'/v{{ image.release }}/main\n\ '$AlpineRepo'v{{ image.release }}/community\n\ \#EndREPOS#g' CT-Build/Alpine.yaml #DebianBaseRepo sed -i -e '/#InitDownloadREPO/{n;d}' CT-Build/Debian.yaml