From ae449fbd75478f0cdfe6fe9abc3998aee9ed7574 Mon Sep 17 00:00:00 2001 From: Robert Schwebel Date: Sat, 20 Aug 2016 19:47:06 +0200 Subject: lighttpd: create /etc/lighttpd/conf.d in any case Otherwhise 'systemctl status lighttpd' shows that include_shell in lighttpd.conf tries to glob in a non-existing directory. While being there, test if there are *.conf files before including them, which also would give an error. Signed-off-by: Robert Schwebel Signed-off-by: Michael Olbrich --- projectroot/etc/lighttpd/lighttpd.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'projectroot') diff --git a/projectroot/etc/lighttpd/lighttpd.conf b/projectroot/etc/lighttpd/lighttpd.conf index 34468ea97..86048f003 100644 --- a/projectroot/etc/lighttpd/lighttpd.conf +++ b/projectroot/etc/lighttpd/lighttpd.conf @@ -69,5 +69,5 @@ mimetype.assign = ( index-file.names = ( "index.html" ) -include_shell "cat conf.d/*.conf" +include_shell "[ \"$(ls -A conf.d/)\" ] && cat conf.d/*.conf" -- cgit v1.2.3