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.


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



Reply via email to