mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-11-15 02:42:58 +00:00
Adding docker+arm detection & FTL download
Signed-off-by: Adam Hill <adam@diginc.us>
This commit is contained in:
parent
29bad2fe9b
commit
3fbb0ac8dd
1 changed files with 9 additions and 3 deletions
|
@ -2305,9 +2305,15 @@ get_binary_name() {
|
||||||
binary="pihole-FTL-arm-linux-gnueabi"
|
binary="pihole-FTL-arm-linux-gnueabi"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
printf "%b %b Detected ARM architecture\\n" "${OVER}" "${TICK}"
|
if [[ -f "/.dockerenv" ]]; then
|
||||||
# set the binary to be used
|
printf "%b %b Detected ARM architecture in docker\\n" "${OVER}" "${TICK}"
|
||||||
binary="pihole-FTL-arm-linux-gnueabi"
|
# set the binary to be used
|
||||||
|
binary="pihole-FTL-armel-native"
|
||||||
|
else
|
||||||
|
printf "%b %b Detected ARM architecture\\n" "${OVER}" "${TICK}"
|
||||||
|
# set the binary to be used
|
||||||
|
binary="pihole-FTL-arm-linux-gnueabi"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
elif [[ "${machine}" == "x86_64" ]]; then
|
elif [[ "${machine}" == "x86_64" ]]; then
|
||||||
# This gives the architecture of packages dpkg installs (for example, "i386")
|
# This gives the architecture of packages dpkg installs (for example, "i386")
|
||||||
|
|
Loading…
Reference in a new issue