No matter what I do when I run the script from bconsole using the job I get a 
Password su authentication error from the line.

emptyVols=$(su postgres  -c "psql -d bareos  -t -c \"select m.VolumeName from 
Media m where m.VolStatus not in ('Append','Purged') and not exists (Select 1 
from JobMedia jm where jm.MediaId=m.MediaID);\"")

Running ./consolidatefix.sh from the command line in my scripts directory works 
perfectly with su using postgres and runs great with no password error.

The script runs a bareos user.

At this point I'll just slap it in a chron job and forget about Bareos running 
it.  I just can't get it working and it should work just fine.

Thanks for the help.

-- 
You received this message because you are subscribed to the Google Groups 
"bareos-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to