Fail hard if FTL binary could not be installed

Signed-off-by: DL6ER <dl6er@dl6er.de>
pull/2602/head
DL6ER 5 years ago
parent 7479485d45
commit 4948862dce
No known key found for this signature in database
GPG Key ID: FB60471F0575164A

@ -2541,7 +2541,10 @@ main() {
LIGHTTPD_ENABLED=false
fi
# Check if FTL is installed - do this early on as FTL is a hard dependency for Pi-hole
FTLdetect || printf " %b FTL Engine not installed\\n" "${CROSS}"
if ! FTLdetect; then
printf " %b FTL Engine not installed\\n" "${CROSS}"
exit 1
fi
# Install and log everything to a file
installPihole | tee -a /proc/$$/fd/3

Loading…
Cancel
Save