mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-11-15 10:43:55 +00:00
Only install web dependenices if flag is true
This commit is contained in:
parent
f588c6f93c
commit
bd07d7f32e
1 changed files with 6 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue