Configuring PostgreSQL
PostgreSQL settings are found in the following configuration file:
/etc/netrounds/probe-connect.conf
Below is an example of file contents specifying username "user" and password "password".
DATABASES['default']['USER'] = 'user' DATABASES['default']['PASSWORD'] = 'password'
When updating the password in probe-connect.conf
, you need to escape any characters
that are identical to the character surrounding strings (above, this is the single quote, '). It is also
best to escape any other non-alphanumeric characters. The escape character used is the backslash.
You can verify that you have set the intended password as follows:
source /etc/netrounds/probe-connect.conf echo $PASSWORD
After making changes to these settings, you must also update the PostgreSQL database itself with the new password. How to do that is explained in the chapter Updating the Database with a New User Password.