diff options
author | root <root@audiopole.in.bpm> | 2019-02-05 03:22:39 +0000 |
---|---|---|
committer | root <root@audiopole.in.bpm> | 2019-02-05 03:22:39 +0000 |
commit | 8df182e6d1eaa9a0fd6323b9b6c22f118b28acd4 (patch) | |
tree | 1f33603338d69148c0e2c7f558e10c828591412d /INSTALLING | |
download | qotdserver-8df182e6d1eaa9a0fd6323b9b6c22f118b28acd4.tar.gz qotdserver-8df182e6d1eaa9a0fd6323b9b6c22f118b28acd4.tar.bz2 qotdserver-8df182e6d1eaa9a0fd6323b9b6c22f118b28acd4.zip |
initial
Diffstat (limited to 'INSTALLING')
-rw-r--r-- | INSTALLING | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/INSTALLING b/INSTALLING new file mode 100644 index 0000000..075ee5b --- /dev/null +++ b/INSTALLING @@ -0,0 +1,28 @@ +qotdserver 1.0 +Copyright (C) 2019 Richard Knight + + +Run the usuals: + make + make install (as root) + +This will compile and install qotdserver to /usr/sbin/qotdserver, along with +the default config at /etc/qotdserver.conf + +A postgresql database should be created and then create_table.sql executed +within. A specific user with permissions to select from the quote table should +be set up, for example with the following commands: + + CREATE USER qotdserver ENCRYPTED PASSWORD 'db_password'; + GRANT SELECT ON quote TO qotdserver; + +This creates the database with a couple of thousand example quotes. In order to +change/add quotes, refer to README. + +Edit /etc/qotdserver.conf, changing the parameters in the database section to +reflect the postgresql account. + +The day parameter in the general section specifies the mode of operation as an +integer, which can be: + 0 : New quote on connection + 1 : New quote each day (reset at 00:00) |