diff options
Diffstat (limited to 'nagios-check-apt-updates')
-rwxr-xr-x | nagios-check-apt-updates | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/nagios-check-apt-updates b/nagios-check-apt-updates index a4e4cd6..5bf1242 100755 --- a/nagios-check-apt-updates +++ b/nagios-check-apt-updates @@ -173,6 +173,7 @@ for my $vserver (@{$params->{'vservers'}}) { }; for my $vserver (@vservers) { my $pre_command = "/usr/sbin/vserver $vserver exec "; + $pre_command = ($use_sudo ? 'sudo ' : '').$pre_command; do_check($pre_command, $vserver, \@updates_security, \@updates_other); } |