From: Kern Sibbald Date: Wed, 26 Mar 2008 17:32:26 +0000 (+0000) Subject: Fix cleanup-tape script to use slot X-Git-Tag: Release-7.0.0~4789 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=6738324fd4b96d17d7686bcf55a067f84b07e2df;p=bacula%2Fbacula Fix cleanup-tape script to use slot git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@6692 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/regress/scripts/cleanup-tape.in b/regress/scripts/cleanup-tape.in index 1fbefe6d49..1627c91d71 100755 --- a/regress/scripts/cleanup-tape.in +++ b/regress/scripts/cleanup-tape.in @@ -2,11 +2,13 @@ # # Cleanup left over files -- both before and after test run # +. ./config + scripts/cleanup -a=`bin/mtx-changer @autochanger@ loaded 0 @tape_drive@ 0` +a=`bin/mtx-changer @autochanger@ loaded $SLOT1 @tape_drive@ 0` if test $a = 0 ; then - bin/mtx-changer @autochanger@ load 1 @tape_drive@ 0 + bin/mtx-changer @autochanger@ load $SLOT1 @tape_drive@ 0 fi mt -f @tape_drive@ rewind mt -f @tape_drive@ weof