From cfe7901dbb3579964362946cfc05f58c16c2acc1 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Tue, 14 Mar 2006 14:48:25 +0000 Subject: still need sudo git-svn-id: svn+ssh://asteria.noreply.org/svn/weaselutils/trunk@61 bc3d92e2-beff-0310-a7cd-cc87d7ac0ede --- nagios-check-apt-updates | 1 + 1 file changed, 1 insertion(+) (limited to 'nagios-check-apt-updates') 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); } -- cgit v1.2.3