better ip order internally
@@ -25,12 +25,6 @@ t="$(date --date "$timestamp" '+%Y%m%dT%H%M%SZ')"
# use caching proxy to avoid throttling, if available
if wget -t1 -qO/dev/null http://localhost/$base/$archive/; then
echo "http://localhost/$base/$archive/$t"
-# try our central cache
-elif wget -t1 -qO/dev/null https://snapshot-cache.ci.gardener.cloud/gardenlinux/$base/$archive/; then
- echo "https://snapshot-cache.ci.gardener.cloud/gardenlinux/$base/$archive/$t"
-elif wget -t1 -qO/dev/null https://snapshot-cache.ci.gardener.cloud/$base/$archive/; then
- echo "https://snapshot-cache.ci.gardener.cloud/$base/$archive/$t"
-
elif wget -t1 -qO/dev/null http://172.17.0.1/$base/$archive/; then
echo "http://172.17.0.1/$base/$archive/$t"
# elif wget -t1 -qO/dev/null http://repo.gardenlinux.io/gardenlinux/archive/$archive/; then
@@ -41,6 +35,12 @@ elif wget -t1 -qO/dev/null http://45.86.152.1/gardenlinux/$base/$archive/; then
# this is for the gardenlinux-local packages ($base = gardenlinux/)
elif wget -t1 -qO/dev/null http://45.86.152.1/$base/; then
echo "http://45.86.152.1/$base/"
+# try our central cache
+elif wget -t1 -qO/dev/null https://snapshot-cache.ci.gardener.cloud/gardenlinux/$base/$archive/; then
+ echo "https://snapshot-cache.ci.gardener.cloud/gardenlinux/$base/$archive/$t"
+elif wget -t1 -qO/dev/null https://snapshot-cache.ci.gardener.cloud/$base/$archive/; then
+ echo "https://snapshot-cache.ci.gardener.cloud/$base/$archive/$t"
+
else
echo "https://snapshot.debian.org/$base/$archive/$t"
fi
