]> git.sur5r.net Git - bacula/bacula/blob - bacula/scripts/bconsole.in
- Modified bconsole script so that it is improperly
[bacula/bacula] / bacula / scripts / bconsole.in
1 #!/bin/sh
2 which dirname >/dev/null 
3 # does dirname exit?
4 if [ $? = 0 ] ; then
5   cwd=`dirname $0`
6   if [ x$cwd = x. ]; then
7      cwd=`pwd`
8   fi
9   if [ x$cwd = x@sbindir@ ] ; then
10      echo "bconsole not properly installed."  
11      exit 1
12   fi
13 fi
14 if [ x@sbindir@ = x@sysconfdir@ ]; then
15    echo "bconsole not properly installed."
16    exit 1
17 fi
18 if [ $# = 1 ] ; then
19    echo "doing bconsole $1.conf"
20    @sbindir@/bconsole -c $1.conf
21 else
22    @sbindir@/bconsole -c @sysconfdir@/bconsole.conf
23 fi