Adding docker+arm detection & FTL download

Signed-off-by: Adam Hill <adam@diginc.us>
pull/2984/head
Adam Hill 5 years ago
parent 29bad2fe9b
commit 3fbb0ac8dd
No known key found for this signature in database
GPG Key ID: 2193804FCA429855

@ -2305,9 +2305,15 @@ get_binary_name() {
binary="pihole-FTL-arm-linux-gnueabi"
fi
else
printf "%b %b Detected ARM architecture\\n" "${OVER}" "${TICK}"
# set the binary to be used
binary="pihole-FTL-arm-linux-gnueabi"
if [[ -f "/.dockerenv" ]]; then
printf "%b %b Detected ARM architecture in docker\\n" "${OVER}" "${TICK}"
# 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
elif [[ "${machine}" == "x86_64" ]]; then
# This gives the architecture of packages dpkg installs (for example, "i386")

Loading…
Cancel
Save