Commit e2319478 authored by Michael Davis's avatar Michael Davis
Browse files

[kill-bash] Adds debug info to cta-admin failure

parent ef2c99e0
......@@ -201,8 +201,9 @@ if [[ $REMOVE == 1 ]]; then
echo "Got cta admin privileges, can proceed with the workflow"
else
# displays what failed and fail
cat /etc/cta/cta-cli.conf
admin_cta admin ls
die "Could not launch cta command."
die "Could not launch cta-admin command."
fi
# recount the files on tape as the workflows may have gone further...
INITIALFILESONTAPE=$(admin_cta archivefile ls --all | grep ${EOS_DIR} | wc -l)
......@@ -233,7 +234,7 @@ if [[ $REMOVE == 1 ]]; then
fi
FILESONTAPE=$(admin_cta archivefile ls --all > >(grep ${EOS_DIR} | wc -l) 2> >(cat > /tmp/ctaerr))
if [[ $(cat /tmp/ctaerr | wc -l) -gt 0 ]]; then
echo "cta COMMAND FAILED!!"
echo "cta-admin COMMAND FAILED!!"
echo "ERROR CTA ERROR MESSAGE:"
cat /tmp/ctaerr
break
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment