mirror of
https://github.com/pi-hole/pi-hole
synced 2024-12-22 23:08:07 +00:00
lighttpd: use file glob for optional external.conf
lighttpd 1.4.50 config parse will error if include_shell exits non-zero and pi-hole sample config: include_shell "cat external.conf 2>/dev/null" is an error if external.conf does not exist Replace with: include "external*.conf" file glob supported since lighttpd 1.4.40 and is not an error if there is no file which matches the file glob Signed-off-by: Glenn Strauss <gstrauss@gluelogic.com>
This commit is contained in:
parent
a79dff3d98
commit
69b2a5a876
@ -72,4 +72,5 @@ $HTTP["url"] =~ "^/admin/\.(.*)" {
|
||||
}
|
||||
|
||||
# Add user chosen options held in external file
|
||||
include_shell "cat external.conf 2>/dev/null"
|
||||
# (use file glob for optional file)
|
||||
include "external*.conf"
|
||||
|
@ -90,4 +90,5 @@ $HTTP["url"] =~ "^/admin/\.(.*)" {
|
||||
}
|
||||
|
||||
# Add user chosen options held in external file
|
||||
include_shell "cat external.conf 2>/dev/null"
|
||||
# (use file glob for optional file)
|
||||
include "external*.conf"
|
||||
|
Loading…
Reference in New Issue
Block a user