I've upgraded to 3.0.2 and seen this as well. I've purged the package and
reinstalled with out any luck. Commenting out the line cause a warning at
line 54:

./mtx-changer: line 54: test: -ne: unary operator expected

I've created a little patch to get around the errors. This sets debug to off
by default and will overwrite that value with an mtx-changer.conf if it
exists.

lsddomainsd:/etc/bacula/scripts# diff -au mtx-changer.orig mtx-changer
--- mtx-changer.orig    2009-09-29 14:31:11.000000000 -0600
+++ mtx-changer 2009-09-29 14:33:01.000000000 -0600
@@ -45,8 +45,13 @@
 #   the mtx exit code or a 0. If the script exits with a non-zero
 #   exit code, Bacula will assume the request failed.
 #
+debug_log=0
+
 # source our conf file
-. /etc/bacula/scripts/mtx-changer.conf
+mtx_conf_file="/etc/bacula/scripts/mtx-changer.conf"
+if test -f $mtx_conf_file; then
+    . /etc/bacula/scripts/mtx-changer.conf
+fi

 MTX=/usr/sbin/mtx

Thanks,

Robert LeBlanc
Life Sciences & Undergraduate Education Computer Support
Brigham Young University

Reply via email to