File: bconsole.in

package info (click to toggle)
bacula 5.0.2-2.2%2Bsqueeze1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 22,688 kB
  • ctags: 15,071
  • sloc: ansic: 109,509; cpp: 24,105; sh: 21,958; makefile: 4,010; perl: 3,083; sql: 1,366; lisp: 479; python: 166; xml: 64; sed: 32; awk: 8
file content (23 lines) | stat: -rwxr-xr-x 488 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh
which dirname >/dev/null 
# does dirname exit?
if [ $? = 0 ] ; then
  cwd=`dirname $0`
  if [ x$cwd = x. ]; then
     cwd=`pwd`
  fi
  if [ x$cwd = x@sbindir@ ] ; then
     echo "bconsole not properly installed."  
     exit 1
  fi
fi
if [ x@sbindir@ = x@sysconfdir@ ]; then
   echo "bconsole not properly installed."
   exit 1
fi
if [ $# = 1 ] ; then
   echo "doing bconsole $1.conf"
   @sbindir@/bconsole -c $1.conf
else
   @sbindir@/bconsole -c @sysconfdir@/bconsole.conf
fi