Use full path to bconsole
[mirror/dsa-puppet.git] / modules / bacula / files / volume-purge-action
index 938d75c..5388829 100755 (executable)
@@ -70,7 +70,7 @@ for c in cmd:
   if args.verbose:
     print("Will run: %s"%(c,))
 
-  p = subprocess.Popen(['bconsole'], stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
+  p = subprocess.Popen(['/usr/sbin/bconsole'], stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
   (out, err) = p.communicate(c.encode())
   if p.returncode != 0:
     raise Exception("bconsole failed.  stdout:\n%s\nstderr:%s\n"%(out, err))