Blame | Last modification | View Log | RSS feed
#!/usr/bin/perlopen(CONF, "/etc/webmin/miniserv.conf") || die "Failed to open /etc/webmin/miniserv.conf : $!";while(<CONF>) {$root = $1 if (/^root=(.*)/);}close(CONF);$root || die "No root= line found in /etc/webmin/miniserv.conf";$ENV{'PERLLIB'} = "$root";$ENV{'WEBMIN_CONFIG'} = "/etc/webmin";$ENV{'WEBMIN_VAR'} = "/var/webmin";chdir("$root/system-status");exec("$root/system-status/enable-collection.pl", @ARGV) || die "Failed to run $root/system-status/enable-collection.pl : $!";