haiwen / seafile

High performance file syncing and sharing, with also Markdown WYSIWYG editing, Wiki, file label and other knowledge management features.
http://seafile.com/
Other
12.25k stars 1.54k forks source link

[pgsql] ccnet.conf ignores PORT setting #1801

Closed biodiv closed 7 years ago

biodiv commented 7 years ago
[Database]
ENGINE=pgsql
HOST=localhost
PORT=6432
USER=seafile
PASSWD=seafile
DB=ccnet_db

the port setting is ignored and the default port 5432 is used. Seafile 6.0.6.

HOST=localhost:6432

gives the error of an invalid host

dakira commented 7 years ago

The host variable is actually not used in the code. This should be an easy fix, just three files to change. Go for it. ;)

https://github.com/haiwen/seafile/search?utf8=%E2%9C%93&q=seaf_db_new_pgsql&type=Code

freeplant commented 7 years ago

Fixed. Will be included in the next release.