Subversion Repositories configs

Rev

Rev 192 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
192 - 1
#!/usr/bin/perl
2
open(CONF, "</etc/webmin/miniserv.conf") || die "Failed to open /etc/webmin/miniserv.conf : $!";
3
while(<CONF>) {
4
        $root = $1 if (/^root=(.*)/);
5
        }
6
close(CONF);
7
$root || die "No root= line found in /etc/webmin/miniserv.conf";
8
$ENV{'PERLLIB'} = "$root";
9
$ENV{'WEBMIN_CONFIG'} = "/etc/webmin";
10
$ENV{'WEBMIN_VAR'} = "/var/webmin";
203 - 11
delete($ENV{'MINISERV_CONFIG'});
192 - 12
chdir("$root");
13
exec("$root/record-failed.pl", @ARGV) || die "Failed to run $root/record-failed.pl : $!";