Last active
February 7, 2016 16:58
-
-
Save dlangille/e73aa36c534a2b9920d4 to your computer and use it in GitHub Desktop.
Bacula 7.4.0 customizations for mtx-changer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- /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