]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/scripts/bconsole.in
Update
[bacula/bacula] / bacula / scripts / bconsole.in
index 2aa66b00b2be99ec466ee4986aedd898a286de21..25ed4e90532a5521a07b3f4284ea599a7e3a1fab 100755 (executable)
@@ -1,4 +1,20 @@
 #!/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