mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-11-25 23:53:17 +00:00
Move FTL binary availability check after the supported OS check
Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
parent
38ecc1693f
commit
369ccf13a8
1 changed files with 10 additions and 10 deletions
|
@ -2088,16 +2088,6 @@ main() {
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Check if there is a usable FTL binary available on this architecture - do
|
|
||||||
# this early on as FTL is a hard dependency for Pi-hole
|
|
||||||
local funcOutput
|
|
||||||
funcOutput=$(get_binary_name) #Store output of get_binary_name here
|
|
||||||
# Abort early if this processor is not supported (get_binary_name returns empty string)
|
|
||||||
if [[ "${funcOutput}" == "" ]]; then
|
|
||||||
printf " %b Upgrade/install aborted\\n" "${CROSS}" "${DISTRO_NAME}"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Check if SELinux is Enforcing and exit before doing anything else
|
# Check if SELinux is Enforcing and exit before doing anything else
|
||||||
checkSelinux
|
checkSelinux
|
||||||
|
|
||||||
|
@ -2114,6 +2104,16 @@ main() {
|
||||||
# Check that the installed OS is officially supported - display warning if not
|
# Check that the installed OS is officially supported - display warning if not
|
||||||
os_check
|
os_check
|
||||||
|
|
||||||
|
# Check if there is a usable FTL binary available on this architecture - do
|
||||||
|
# this early on as FTL is a hard dependency for Pi-hole
|
||||||
|
local funcOutput
|
||||||
|
funcOutput=$(get_binary_name) #Store output of get_binary_name here
|
||||||
|
# Abort early if this processor is not supported (get_binary_name returns empty string)
|
||||||
|
if [[ "${funcOutput}" == "" ]]; then
|
||||||
|
printf " %b Upgrade/install aborted\\n" "${CROSS}" "${DISTRO_NAME}"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
# Install packages used by this installation script
|
# Install packages used by this installation script
|
||||||
printf " %b Checking for / installing Required dependencies for this install script...\\n" "${INFO}"
|
printf " %b Checking for / installing Required dependencies for this install script...\\n" "${INFO}"
|
||||||
install_dependent_packages "${INSTALLER_DEPS[@]}"
|
install_dependent_packages "${INSTALLER_DEPS[@]}"
|
||||||
|
|
Loading…
Reference in a new issue