Rafal Krzewski wrote:

Package: bacula-director-pgsql
Version: 1.36.1-1
Severity: critical

1) the script attempts to use $DB_ADMIN and $dbadmin variables that are never set. Would expect them to be set from conf variable bacula-director-pgsql/pgsql_root_username but the script does not do that.

2) the script uses incorrect su command syntax. It sets the following variable:
PGSQLCMD="su -s /bin/sh $dbadmin -c /usr/bin/psql"
And then attempts to execute the command appeding different suffixes to the variable value. Su expects the username as the last argument. IE
su -c psql postgres -l does not work, but su -c "psql -l" postgres works. Because of that all su invocations PGSQLCMD invocations in the script need to be changed.


There may be more problems, but the above are definite showstoppers.

I am no PostgreSQL admin. The tag "HELP" is set since several weeks ago, and nobody answered.
The PostgreSQL is completely "unsupported" as of now.
Please feel free to send me patches providing the functionality you need and i'll be more than happy to integrate them.



Best, J.L.




-- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Reply via email to