Only install web dependenices if flag is true
This commit is contained in:
@@ -1169,7 +1169,6 @@ main() {
|
|||||||
{ echo "!!! Unable to clone ${piholeGitUrl} into ${PI_HOLE_LOCAL_REPO}, unable to continue."; \
|
{ echo "!!! Unable to clone ${piholeGitUrl} into ${PI_HOLE_LOCAL_REPO}, unable to continue."; \
|
||||||
exit 1; \
|
exit 1; \
|
||||||
}
|
}
|
||||||
#TODO: Check if web flag is set here
|
|
||||||
getGitFiles ${webInterfaceDir} ${webInterfaceGitUrl} || \
|
getGitFiles ${webInterfaceDir} ${webInterfaceGitUrl} || \
|
||||||
{ echo "!!! Unable to clone ${webInterfaceGitUrl} into ${webInterfaceDir}, unable to continue."; \
|
{ echo "!!! Unable to clone ${webInterfaceGitUrl} into ${webInterfaceDir}, unable to continue."; \
|
||||||
exit 1; \
|
exit 1; \
|
||||||
@@ -1199,12 +1198,18 @@ main() {
|
|||||||
|
|
||||||
# Install packages used by the Pi-hole
|
# Install packages used by the Pi-hole
|
||||||
install_dependent_packages PIHOLE_DEPS[@]
|
install_dependent_packages PIHOLE_DEPS[@]
|
||||||
|
if [[ ${INSTALL_WEB} == true ]]; then
|
||||||
|
install_dependent_packages PIHOLE_WEB_DEPS[@]
|
||||||
|
fi
|
||||||
|
|
||||||
# Install and log everything to a file
|
# Install and log everything to a file
|
||||||
installPihole | tee ${tmpLog}
|
installPihole | tee ${tmpLog}
|
||||||
else
|
else
|
||||||
# update packages used by the Pi-hole
|
# update packages used by the Pi-hole
|
||||||
install_dependent_packages PIHOLE_DEPS[@]
|
install_dependent_packages PIHOLE_DEPS[@]
|
||||||
|
if [[ ${INSTALL_WEB} == true ]]; then
|
||||||
|
install_dependent_packages PIHOLE_WEB_DEPS[@]
|
||||||
|
fi
|
||||||
|
|
||||||
updatePihole | tee ${tmpLog}
|
updatePihole | tee ${tmpLog}
|
||||||
fi
|
fi
|
||||||
|
Reference in New Issue
Block a user