mirror of
https://github.com/webmin/webmin.git
synced 2026-10-05 03:40:39 +01:00
Merge pull request #1 from nielosz/Handle-Pipe-commands
Handle pipe commands
This commit is contained in:
@@ -76,6 +76,15 @@ if (!defined($config_file_cache{$file})) {
|
||||
if (/^\s*\@(.*\S)/) {
|
||||
# An include file reference .. parse it
|
||||
local $incfile = $1;
|
||||
# A pipe command
|
||||
if ($incfile =~ /^\|"(.*)"$/) {
|
||||
local $command = $1;
|
||||
local $incfiles = `$command`;
|
||||
foreach (split(/\s/,$incfiles)) {
|
||||
local $inc = &read_config_file(substr($_,1));
|
||||
push(@{$parent->{'members'}}, @$inc);
|
||||
}
|
||||
}
|
||||
if ($incfile !~ /^\//) {
|
||||
$incfile = "$config{'bacula_dir'}/$incfile";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user