]> git.donarmstrong.com Git - infobot.git/blob - INSTALL.pgsql
* Rebranding from blootbot to infobot
[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, infobot 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
11 infobot.config, then the tables will automatically be created on startup. Until
12 I get setup.pl fixed, run the following commands as root (or postgres if root
13 doesnt have 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
21 be!), and the user will own the newly created database <dbname>. Congrats!
22
23 If everything went fine, you should have everything infobot needs to use pgsql.
24 Next simply cd to the base directory you installed the bot to and type:
25
26 ./infobot
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