mirror of
https://github.com/pi-hole/pi-hole.git
synced 2025-03-12 11:48:28 +00:00
Skip FTL update check if $PIHOLE_SKIP_FTL_CHECK is set to true
Signed-off-by: Christian König <github@yubiuser.dev>
This commit is contained in:
parent
e3ad058e6b
commit
ba6ff72a93
2 changed files with 30 additions and 24 deletions
|
@ -146,6 +146,8 @@ main() {
|
|||
echo -e " ${INFO} Web Interface:\\t${COL_LIGHT_GREEN}up to date${COL_NC}"
|
||||
fi
|
||||
|
||||
# Allow the user to skip this check if they are using a self-compiled FTL binary from an unsupported architecture
|
||||
if [ "${PIHOLE_SKIP_FTL_CHECK}" != true ]; then
|
||||
local funcOutput
|
||||
funcOutput=$(get_binary_name) #Store output of get_binary_name here
|
||||
local binary
|
||||
|
@ -172,6 +174,10 @@ main() {
|
|||
esac
|
||||
FTL_update=false
|
||||
fi
|
||||
else
|
||||
echo -e " ${INFO} FTL:\\t\\t${COL_YELLOW}PIHOLE_SKIP_FTL_CHECK env variable set to true - update check skipped${COL_NC}"
|
||||
FTL_update=false
|
||||
fi
|
||||
|
||||
# Determine FTL branch
|
||||
local ftlBranch
|
||||
|
|
|
@ -2348,7 +2348,7 @@ main() {
|
|||
exit 1
|
||||
fi
|
||||
else
|
||||
printf " %b %bPIHOLE_SKIP_FTL_CHECK env variable set to true - skipping architecture check%b\\n" "${INFO}" "${COL_LIGHT_GREEN}" "${COL_NC}"
|
||||
printf " %b %bPIHOLE_SKIP_FTL_CHECK env variable set to true - skipping architecture check%b\\n" "${INFO}" "${COL_YELLOW}" "${COL_NC}"
|
||||
fi
|
||||
|
||||
# in case of an update (can be a v5 -> v6 or v6 -> v6 update) or repair
|
||||
|
@ -2404,7 +2404,7 @@ main() {
|
|||
exit 1
|
||||
fi
|
||||
else
|
||||
printf " %b %bPIHOLE_SKIP_FTL_CHECK env variable set to true - skipping FTL binary installation%b\\n" "${INFO}" "${COL_LIGHT_GREEN}" "${COL_NC}"
|
||||
printf " %b %bPIHOLE_SKIP_FTL_CHECK env variable set to true - skipping FTL binary installation%b\\n" "${INFO}" "${COL_YELLOW}" "${COL_NC}"
|
||||
fi
|
||||
|
||||
# Install and log everything to a file
|
||||
|
|
Loading…
Add table
Reference in a new issue