]> git.donarmstrong.com Git - infobot.git/blob - INSTALL.pgsql
ecab8bcc0c769cfee90fb88e15e4ccafeff5610f
[infobot.git] / INSTALL.pgsql
1 Method of installation.
2 -----------------------
3
4 - Debian: (apt-get install postgresql)
5 - Debian: (apt-get install libpg-perl)
6
7
8 As of now, blootbot has full pgsql support. It seems to be working 100%, but it
9 assumes that you have precreated the database and user for now. As long as you
10 already created the database and user and stored this info in the blootbot.config,
11 then the tables will automatically be created on startup. Until I get setup.pl
12 fixed, run the following commands as root (or postgres if root doesnt have
13 permission to create users/db's):
14
15 > createuser --no-adduser --no-createdb --pwprompt --encrypted <user>
16 > createdb --owner=<user> <dbname> [<description>]
17
18 Dont forget to replace <user> and so forth with actual values you intend to use,
19 and dont include the <>'s ;) If you run these commands, you should get a user
20 with an encrypted password that cannot create new db's or user's (as it should be!),
21 and the user will own the newly created database <dbname>. Congrats!
22
23 If everything went fine, you should have everything blootbot needs to use pgsql.
24 Next simply cd to the base directory you installed the bot to and type:
25
26 ./blootbot
27
28
29 Thats it! Everything the bot needs should be automatically created when it loads
30 for the first time.
31
32 In the future I will try to get around to editing the setup.pl file to ask the
33 same questions it does for mysql (your root password etc) so that you can skip
34 manually creating the database/user. But for now, this should be just fine for
35 most of you techies out there.
36
37
38 ----
39 troubled@freenode