PostgreSQL custom config does not respect DATADIR variable
PostgreSQL server embedded in HAF uses its data directory both for database and custom configuration storage. However, if that directory is changed by setting the DATADIR variable, PostgreSQL will save data in the new directory, but look for a custom configuration in the default one.
This prevents us from providing custom PostgreSQL config when running HAF as a GitLab CI service and is not intuitive for the users.