Bacula 7.4.0 customizations for mtx-changer
--- /usr/local/share/bacula/mtx-changer 2016-02-07 16:56:07.144277762 +0000 | |
+++ /usr/local/sbin/mtx-changer 2016-02-07 16:57:42.601276013 +0000 | |
@@ -65,23 +65,25 @@ | |
# myversion must be the same as version in mtx-changer.conf | |
myversion=2 | |
+CONFIG=/usr/local/etc/bacula/mtx-changer.conf | |
+ | |
# source our conf file | |
-if test ! -f /usr/local/share/bacula/mtx-changer.conf ; then | |
+if test ! -f ${CONFIG}; then | |
echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" | |
- echo "ERROR: /usr/local/share/bacula/mtx-changer.conf file not found!!!!" | |
+ echo "ERROR: ${CONFIG} file not found!!!!" | |
echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" | |
exit 1 | |
fi | |
-. /usr/local/share/bacula/mtx-changer.conf | |
+. ${CONFIG} | |
if test "${version}" != "${myversion}" ; then | |
echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" | |
- echo "ERROR: /usr/local/share/bacula/mtx-changer.conf has wrong version. Wanted ${myversion}, got ${version} !!!" | |
+ echo "ERROR: ${CONFIG} has wrong version. Wanted ${myversion}, got ${version} !!!" | |
echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" | |
exit 1 | |
fi | |
-MTX=mtx | |
+MTX=/usr/local/sbin/mtx | |
if test ${debug_log} -ne 0 ; then | |
touch /var/db/bacula/mtx.log |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment