diff options
author | Peter Palfrader <peter@palfrader.org> | 2006-03-14 14:48:25 +0000 |
---|---|---|
committer | root <root@bc3d92e2-beff-0310-a7cd-cc87d7ac0ede> | 2006-03-14 14:48:25 +0000 |
commit | cfe7901dbb3579964362946cfc05f58c16c2acc1 (patch) | |
tree | 310862f12f70d55c84172ffb95f71af870ebce80 | |
parent | cfd0614fac5604e29b2e87acf18e75b4de06c031 (diff) |
still need sudo
git-svn-id: svn+ssh://asteria.noreply.org/svn/weaselutils/trunk@61 bc3d92e2-beff-0310-a7cd-cc87d7ac0ede
-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); } |