File: load-all-modules

package info (click to toggle)
lighttpd 1.4.82-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 6,800 kB
  • sloc: ansic: 103,536; perl: 2,720; sh: 783; yacc: 726; makefile: 715
file content (30 lines) | stat: -rwxr-xr-x 681 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/sh

set -ue

export PATH="/sbin:/usr/sbin:$PATH"

CONF="$AUTOPKGTEST_TMP/lighttpd.conf"
(
	cat <<EOF
server.document-root = "$AUTOPKGTEST_TMP"
server.modules = (
	# must be loaded before mod_cgi
	"mod_indexfile",
	# must be loaded before mod_ajp13
	"mod_auth",
EOF
	(
		cd /usr/lib/lighttpd
		for mod in *.so; do
			mod=${mod%.so}
			test "$mod" = mod_indexfile && continue
			test "$mod" = mod_auth && continue
			echo "\"${mod%.so}\","
		done
	)
	echo ")"
) > "$CONF"

lighttpd -tt -f "$CONF" 2>"$AUTOPKGTEST_TMP/stderr"
grep -v 'Warning: mod_[^ ]* is deprecated and will be removed from a future lighttpd release in early' "$AUTOPKGTEST_TMP/stderr" 1>&2 || test "$?" = 1