aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Iurt
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Iurt')
-rw-r--r--lib/Iurt/Process.pm5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/Iurt/Process.pm b/lib/Iurt/Process.pm
index 7dc4898..e7e1a5d 100644
--- a/lib/Iurt/Process.pm
+++ b/lib/Iurt/Process.pm
@@ -108,6 +108,11 @@ sub perform_command {
plog('DEBUG', "Using timeout of $opt{timeout} seconds.");
+ if ($opt{use_iurt_root_command}) {
+ my ($binary, $args) = $command =~ /^(\S*)(.*)$/;
+ $command = "$sudo $config->{iurt_root_command} --$binary $args";
+ }
+
my ($output, $fulloutput, $comment);
my ($kill, $pipe);