hi

upgraded to bacula 5.0.0. got some warning messages from mtx-changer on 
"update slots" :

Invalid Slot number: /etc/bacula/scripts/mtx-changer: line 176: test: -
ne: unary operator expected
Invalid Slot number: /etc/bacula/scripts/mtx-changer: line 181: test: -
ne: unary operator expected

reading 176: 

if test ${inventory} -ne 0 ; then


so maybe $inventory (and $vxa_packetloader on #181) should be initialized 
to 0 before sourcing mtx-changer.conf? found other vars which may need 
initzialization to a default value. see my patch below.


- Thomas


--- mtx-changer.orig    2010-02-09 17:25:25.000000000 +0100
+++ mtx-changer 2010-02-09 17:28:04.000000000 +0100
@@ -48,6 +48,14 @@
 #   exit code, Bacula will assume the request failed.
 #
 
+# Defaults (costumize in mtx-changer.conf)
+inventory=0
+vxa_packetloader=0
+debug_log=0
+offline=0
+offline_sleep=0
+load_sleep=0
+
 # source our conf file
 . /etc/bacula/scripts/mtx-changer.conf
 


------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
Bacula-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bacula-devel

Reply via email to