From bd07d7f32eba63a1d18d76213bdb8f82c3bd87a6 Mon Sep 17 00:00:00 2001 From: Promofaux Date: Sat, 28 Jan 2017 15:11:39 +0000 Subject: [PATCH] Only install web dependenices if flag is true --- automated install/basic-install.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/automated install/basic-install.sh b/automated install/basic-install.sh index 97c43b4d..bf5afe69 100755 --- a/automated install/basic-install.sh +++ b/automated install/basic-install.sh @@ -1169,7 +1169,6 @@ main() { { echo "!!! Unable to clone ${piholeGitUrl} into ${PI_HOLE_LOCAL_REPO}, unable to continue."; \ exit 1; \ } - #TODO: Check if web flag is set here getGitFiles ${webInterfaceDir} ${webInterfaceGitUrl} || \ { echo "!!! Unable to clone ${webInterfaceGitUrl} into ${webInterfaceDir}, unable to continue."; \ exit 1; \ @@ -1199,12 +1198,18 @@ main() { # Install packages used by the Pi-hole install_dependent_packages PIHOLE_DEPS[@] + if [[ ${INSTALL_WEB} == true ]]; then + install_dependent_packages PIHOLE_WEB_DEPS[@] + fi # Install and log everything to a file installPihole | tee ${tmpLog} else # update packages used by the Pi-hole install_dependent_packages PIHOLE_DEPS[@] + if [[ ${INSTALL_WEB} == true ]]; then + install_dependent_packages PIHOLE_WEB_DEPS[@] + fi updatePihole | tee ${tmpLog} fi