Exit script on failure to install dependent package.

pull/773/merge
Dan Schaper 8 years ago
parent f5be8b2a5e
commit 293c60fb9c

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

Loading…
Cancel
Save