X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=server-src%2Famcheckdb.sh.in;h=ff1f63e598277bf4e986067c090e5668b5dc7c75;hb=refs%2Ftags%2Fupstream%2F2.5.1;hp=cd374aa97d668971f6cab4e213043a583def7098;hpb=94c03cae686e4196a345d72452fda2a5203768ce;p=debian%2Famanda diff --git a/server-src/amcheckdb.sh.in b/server-src/amcheckdb.sh.in index cd374aa..ff1f63e 100644 --- a/server-src/amcheckdb.sh.in +++ b/server-src/amcheckdb.sh.in @@ -1,4 +1,4 @@ -#! /bin/sh +#! @SHELL@ # # check tapelist against database and vice versa # @@ -32,6 +32,7 @@ if [ "$Config" = "" ]; then log "usage: ${Program} " exit 1 fi +shift; # # Check if the configuration directory exists. Make sure that the @@ -51,7 +52,7 @@ fi # Get the location and name of the tapelist filename. If tapelist is not # specified in the amanda.conf file, then use tapelist in the config # directory. -TapeList=`amgetconf${SUF} tapelist` +TapeList=`amgetconf${SUF} $Config tapelist "@$"` if [ ! "$TapeList" ]; then TapeList="$ConfigDir/$Config/tapelist" fi @@ -66,7 +67,7 @@ Amadmin=$sbindir/amadmin$SUF && echo "$Amadmin not found or not executable" >&2 \ && exit 1 -$Amadmin $Config export \ +$Amadmin $Config export "$@"\ | grep "^stats: " \ | while read LINE; do [ "$LINE" = "" ] && continue