1
0
mirror of https://github.com/pi-hole/pi-hole synced 2024-11-18 06:08:21 +00:00

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
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