mirror of
https://github.com/pi-hole/pi-hole.git
synced 2025-04-27 17:50:15 +00:00
Add in an extra check to enable lighttpd.
Signed-off-by: Adam Warner <adamw@rner.email>
This commit is contained in:
parent
90f01b5fc4
commit
b64155a165
1 changed files with 7 additions and 0 deletions
|
@ -2004,8 +2004,15 @@ main() {
|
||||||
# just install the Core dependencies
|
# just install the Core dependencies
|
||||||
DEPS=("${PIHOLE_DEPS[@]}")
|
DEPS=("${PIHOLE_DEPS[@]}")
|
||||||
fi
|
fi
|
||||||
|
|
||||||
install_dependent_packages DEPS[@]
|
install_dependent_packages DEPS[@]
|
||||||
|
|
||||||
|
# On some systems, lighttpd is not enabled on first install. We need to enable it here if the user
|
||||||
|
# has chosen to install the web interface, else the `LIGHTTPD_ENABLED` check will fail
|
||||||
|
if [[ "${INSTALL_WEB}" == true ]]; then
|
||||||
|
enable_service lighttpd
|
||||||
|
fi
|
||||||
|
|
||||||
if [[ -x "$(command -v systemctl)" ]]; then
|
if [[ -x "$(command -v systemctl)" ]]; then
|
||||||
# Value will either be 1, if true, or 0
|
# Value will either be 1, if true, or 0
|
||||||
LIGHTTPD_ENABLED=$(systemctl is-enabled lighttpd | grep -c 'enabled' || true)
|
LIGHTTPD_ENABLED=$(systemctl is-enabled lighttpd | grep -c 'enabled' || true)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue