summaryrefslogblamecommitdiffstats
path: root/satellit_installer/static_files/lighttpd-include-conf-d.sh
blob: a54ed3f5136f6812560c5da84f123a71cf4b85a0 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16















                                                         
#!/bin/sh

if [ -n "$1" ]; then
	DIR="$1"
else
	DIR="/etc/lighttpd"
fi

cd "$DIR" || exit 1
[ -d "conf.d" ] || exit 0

for file in conf.d/*; do
	[ -f "$file" ] && echo 'include "'"$DIR/$file"'"'
done
exit 0