Skip to content

Commit

Permalink
added check for mtx program
Browse files Browse the repository at this point in the history
Signed-off-by: Marco van Wieringen <marco.van.wieringen@bareos.com>
  • Loading branch information
joergsteffens authored and Marco van Wieringen committed May 5, 2013
1 parent 5c6b2cb commit dcd7a2d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion scripts/mtx-changer.in
Expand Up @@ -47,7 +47,7 @@
#

# source our conf file
if test ! -f @sysconfdir@/mtx-changer.conf ; then
if test ! -r @sysconfdir@/mtx-changer.conf ; then
echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
echo "ERROR: @sysconfdir@/mtx-changer.conf file not found!!!!"
echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
Expand All @@ -56,6 +56,10 @@ fi
. @sysconfdir@/mtx-changer.conf

MTX=@MTX@
if test ! -e "$MTX" ; then
echo "ERROR: mtx program not found ($MTX)"
exit 1
fi

dbgfile="@logdir@/mtx.log"
if test ${debug_log} -ne 0 ; then
Expand Down

0 comments on commit dcd7a2d

Please sign in to comment.