mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-14 00:24:40 +00:00
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:
parent
25620da2f8
commit
fee20400f9
@ -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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user