1
0
mirror of https://github.com/pi-hole/pi-hole synced 2024-12-22 06:48:07 +00:00

Merge pull request #3940 from pi-hole/fix/i386-arch

Add fallback for arch detection on i386/x86_64
This commit is contained in:
DL6ER 2020-12-24 08:38:53 +01:00 committed by GitHub
commit a139af8184
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2451,7 +2451,7 @@ get_binary_name() {
elif [[ "${machine}" == "x86_64" ]]; then
# This gives the processor of packages dpkg installs (for example, "i386")
local dpkgarch
dpkgarch=$(dpkg --print-processor 2> /dev/null || true)
dpkgarch=$(dpkg --print-processor 2> /dev/null || dpkg --print-architecture 2> /dev/null)
# Special case: This is a 32 bit OS, installed on a 64 bit machine
# -> change machine processor to download the 32 bit executable