]> git.sur5r.net Git - bacula/bacula/commitdiff
Fix for configuring sudo option for bconsole access
authorMarcin Haba <marcin.haba@bacula.pl>
Thu, 12 Jun 2014 17:28:03 +0000 (19:28 +0200)
committerMarcin Haba <marcin.haba@bacula.pl>
Thu, 12 Jun 2014 17:29:33 +0000 (19:29 +0200)
gui/baculum/protected/Class/Bconsole.php

index a81c75b195cc6db7e344773049465c5ffb680e50..ed178483e63fdeaaf65d33ee5bafe27e2d4da49d 100644 (file)
@@ -132,7 +132,7 @@ class Bconsole extends TModule {
        }
 
        public function testBconsoleCommand(array $command, $bconsoleCmdPath, $bconsoleCfgPath, $useSudo) {
-               $this->setEnvironmentParams($bconsoleCmdPath, $bconsoleCfgPath, $useSudo, null);
+               $this->setEnvironmentParams($bconsoleCmdPath, $bconsoleCfgPath, null, $useSudo);
                $director = array_shift($this->getDirectors()->output);
                return $this->bconsoleCommand($director, $command);             
        }