File: include-conf-enabled.pl

package info (click to toggle)
lighttpd 1.4.69-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 8,328 kB
  • sloc: ansic: 92,571; sh: 5,169; perl: 2,616; makefile: 738; yacc: 729
file content (22 lines) | stat: -rwxr-xr-x 462 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
#!/usr/bin/perl -wl

use strict;
use File::Glob ':glob';

my $confdir = shift || "/etc/lighttpd/";
my $enabled = "conf-enabled/*.conf";

chdir($confdir);
my @files = bsd_glob($enabled);

for my $file (@files)
{
	print "include \"$file\"";
}

print STDERR join("\n",
  "",
  "WARNING: include-conf-enabled.pl is deprecated and slated for removal.",
  "         Replace in lighttpd.conf with:",
  "           include \"/etc/lighttpd/conf-enabled/*.conf\"",
  "");