Fail hard if FTL binary could not be installed

Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
DL6ER 2019-01-31 20:10:52 +01:00
parent 7479485d45
commit 4948862dce
No known key found for this signature in database
GPG key ID: FB60471F0575164A

View file

@ -2541,7 +2541,10 @@ main() {
LIGHTTPD_ENABLED=false LIGHTTPD_ENABLED=false
fi fi
# Check if FTL is installed - do this early on as FTL is a hard dependency for Pi-hole # 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 # Install and log everything to a file
installPihole | tee -a /proc/$$/fd/3 installPihole | tee -a /proc/$$/fd/3