1#!/bin/sh 2# 3# Bacula(R) - The Network Backup Solution 4# 5# Copyright (C) 2000-2016 Kern Sibbald 6# 7# The original author of Bacula is Kern Sibbald, with contributions 8# from many others, a complete list can be found in the file AUTHORS. 9# 10# You may use this file and others of this release according to the 11# license defined in the LICENSE file, which includes the Affero General 12# Public License, v3.0 ("AGPLv3") and some additional permissions and 13# terms pursuant to its AGPLv3 Section 7. 14# 15# This notice must be preserved when any source code is 16# conveyed and/or propagated. 17# 18# Bacula(R) is a registered trademark of Kern Sibbald. 19# 20which dirname >/dev/null 21# does dirname exit? 22if [ $? = 0 ] ; then 23 cwd=`dirname $0` 24 if [ x$cwd = x. ]; then 25 cwd=`pwd` 26 fi 27 if [ x$cwd = x@sbindir@ ] ; then 28 echo "bconsole not properly installed." 29 exit 1 30 fi 31fi 32if [ x@sbindir@ = x@sysconfdir@ ]; then 33 echo "bconsole not properly installed." 34 exit 1 35fi 36if [ $# = 1 ] ; then 37 echo "doing bconsole $1.conf" 38 @sbindir@/bconsole -c $1.conf 39else 40 @sbindir@/bconsole -c @sysconfdir@/bconsole.conf 41fi 42