Created
July 24, 2012 01:01
-
-
Save XayOn/3167268 to your computer and use it in GitHub Desktop.
Degeneratedlabs per-user confis for lighttpd
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl -wl | |
use strict; | |
use File::Glob ':glob'; | |
my $confdir = shift || "/etc/lighttpd/conf-enabled/"; | |
my $enabled = "users/*.conf"; | |
chdir($confdir); | |
my @files = bsd_glob($enabled); | |
for my $file (@files) | |
{ | |
print "include \"conf-enabled/$file\""; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment