1
0
mirror of https://github.com/pi-hole/pi-hole synced 2024-11-19 06:38:17 +00:00

Exit script on failure to install dependent package.

This commit is contained in:
Dan Schaper 2016-10-09 13:52:36 -07:00
parent f5be8b2a5e
commit 293c60fb9c

View File

@ -790,7 +790,9 @@ finalExports() {
installPihole() {
# Install base files and web interface
echo "Checking for Pi-hole dependencies"
dependency_package_install PIHOLE_DEPS[@] # done
if ! dependency_package_install PIHOLE_DEPS[@]; then
exit 1
fi
stopServices
setUser
if [ ! -d "/var/www/html" ]; then
@ -820,7 +822,9 @@ installPihole() {
updatePihole() {
# Install base files and web interface
echo "Checking for Pi-hole dependencies"
dependency_package_install PIHOLE_DEPS[@] # done
if ! dependency_package_install PIHOLE_DEPS[@]; then
exit 1
fi
stopServices
getGitFiles
installScripts
@ -928,7 +932,9 @@ check_cache_freshness
# Install packages used by this installation script
echo "::: Checking for installer dependencies..."
dependency_package_install INSTALLER_DEPS[@]
if ! dependency_package_install INSTALLER_DEPS[@]; then
exit 1
fi
if [[ ${useUpdateVars} == false ]]; then
welcomeDialogs