Perf dashboard should have a script to setup database
authorrniwa@webkit.org <rniwa@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 5 Feb 2016 22:28:20 +0000 (22:28 +0000)
committerrniwa@webkit.org <rniwa@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 5 Feb 2016 22:28:20 +0000 (22:28 +0000)
commit9dcad8f125a8cd4b4e31a36ae01baab7c24e2b2e
tree34131a834e45ca1a44bca427ef05e57ddec2a35a
parentde7f60512df0ca9f139ec51a4de564d73081dd4f
Perf dashboard should have a script to setup database
https://bugs.webkit.org/show_bug.cgi?id=153906

Reviewed by Chris Dumez.

Added tools/setup-database.py to setup the database. It retrieves the database name, username, password
and initializes a database at the specified location.

* Install.md: Updated instruction to setup postgres to use setup-database.py.
* tools/setup-database.py: Added.
(main):
(load_database_config):
(determine_psql_dir):
(start_or_stop_database):
(execute_psql_command):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@196190 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Websites/perf.webkit.org/ChangeLog
Websites/perf.webkit.org/Install.md
Websites/perf.webkit.org/tools/setup-database.py [new file with mode: 0755]