1
0
mirror of https://github.com/pi-hole/pi-hole synced 2025-01-07 22:50:56 +00:00

Check if service is currently enabled when checking if lighttpd may need to be disabled

Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
DL6ER 2025-01-02 13:43:32 +01:00
parent 79087fb252
commit 364281354c
No known key found for this signature in database
GPG Key ID: 00135ACBD90B28DD

View File

@ -2301,8 +2301,8 @@ copy_to_install_log() {
}
disableLighttpd() {
# Return early when lighttpd is not installed
if [[ ! -f /etc/lighttpd/lighttpd.conf ]]; then
# Return early when lighttpd is not active
if ! check_service_active lighttpd; then
return
fi