summaryrefslogtreecommitdiff
path: root/www-apps/liquid_feedback_core/files/postinstall-en.txt
blob: e1eb550eeea11ef355ffe0e25dc311677aca3180 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
To use Liquid Feedback you have to follow these
simple steps, which have to be done as the postgres system user (or
which ever is the database superuser):

$ createuser -d liquid_feedback

$ psql 
postgres=# ALTER USER liquid_feedback WITH PASSWORD 'the_new_password';

$ createdb -U liquid_feedback liquid_feedback
$ psql -U liquid_feedback liquid_feedback
liquid_feedback=# \i /usr/share/liquid_feedback_core/core.sql
INSERT INTO system_setting (member_ttl) VALUES ('1 year');
INSERT INTO contingent (polling, time_frame, text_entry_limit, initiative_limit) VALUES (false, '1 hour', 20, 6);
INSERT INTO contingent (polling, time_frame, text_entry_limit, initiative_limit) VALUES (false, '1 day', 80, 12);
INSERT INTO contingent (polling, time_frame, text_entry_limit, initiative_limit) VALUES (true, '1 hour', 200, 60);
INSERT INTO contingent (polling, time_frame, text_entry_limit, initiative_limit) VALUES (true, '1 day', 800, 120);

and Create an invite code for an admin user:

$ psql -U liquid_feedback liquid_feedback
liquid_feedback=# INSERT INTO member (invite_code, admin) VALUES ('sesam', true);