From: Eric Bollengier Date: Fri, 22 Mar 2024 08:40:08 +0000 (+0100) Subject: Revert "Fix #9882 About tapealert script issue on rhel8" X-Git-Tag: Release-15.0.2~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=76c270692cc00dcacafe2d96c6362a07096ad36e;p=thirdparty%2Fbacula.git Revert "Fix #9882 About tapealert script issue on rhel8" This reverts commit b677c0739d72a08997623d76bcc386bf37efd12e. The tapealert tool is not supposed to convey the error from tapealert. The excelent bacula-tapealert tool can also be used https://github.com/waa/bacula-tapealert --- diff --git a/bacula/scripts/tapealert b/bacula/scripts/tapealert index 42a3dd4e1..c8c68c0ad 100755 --- a/bacula/scripts/tapealert +++ b/bacula/scripts/tapealert @@ -34,17 +34,13 @@ fi if [ x$DEBUG = x ] ; then -out=`mktemp` -$tapeinfo -f $1 >$out -ret=$? -awk '/^TapeAlert/ { $1=""; gsub(/^ */, "", $0); print $0 }' $out -rm -f $out -exit $ret +$tapeinfo -f $1 |grep "^TapeAlert" - |cut -b1-13 +exit $? else # For testing only -cat <