From fee20400f978f81d2314ea86c5c8a8ae4c8ce9f6 Mon Sep 17 00:00:00 2001 From: Franco Fichtner Date: Thu, 9 Nov 2023 10:50:07 +0100 Subject: [PATCH] firewall: fix business bogons fetch This may have been going on ever since we moved a separate CORE_ABI in the business edition. Fixed community mirror to accomodate for 23.4 and 23.10 for now as the bogons are the same anyway. PR: https://forum.opnsense.org/index.php?topic=36886.0 --- src/opnsense/scripts/filter/update_bogons.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/opnsense/scripts/filter/update_bogons.sh b/src/opnsense/scripts/filter/update_bogons.sh index a59a754f8..0531adc72 100755 --- a/src/opnsense/scripts/filter/update_bogons.sh +++ b/src/opnsense/scripts/filter/update_bogons.sh @@ -11,7 +11,14 @@ CORE_ABI=$(opnsense-version -a) SYS_ABI=$(opnsense-verify -a) # force amd64 here since bogons are not published elsewhere -URL="https://pkg.opnsense.org/${SYS_ABI%:*}:amd64/${CORE_ABI}/sets/bogons.txz" +URLPREFIX="https://pkg.opnsense.org/${SYS_ABI%:*}:amd64/${CORE_ABI}" + +if [ -n "$(opnsense-update -x)" ]; then + # fix ABI mismatch for business mirror by using it directly + URLPREFIX=$(opnsense-update -M) +fi + +URL="${URLPREFIX}/sets/bogons.txz" echo "bogons update starting" | logger