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
This commit is contained in:
Franco Fichtner 2023-11-09 10:50:07 +01:00
parent 25620da2f8
commit fee20400f9

View File

@ -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