Changeset 143


Ignore:
Timestamp:
03/30/09 17:18:34 (15 years ago)
Author:
nanardon
Message:
  • a better installation precedure
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/README

    r120 r143  
    1313On the database serveur: 
    1414 
    15 - Create a database (see in postgresql documentation createdb) 
    16 - restore the based schema with sql/postgres.dump 
    17   psql BASENAME < sql/postgres.dump 
     15- You may want to create a specific user: 
     16  From postgres as administrator: 
     17    CREATE ROLE 'rolename' WITH LOGIN PASSWORD 'rolepassword'; 
     18  From command line: 
     19    createuser 'rolename' --password 
     20 
     21- Create a database owned by this role: 
     22  From postgres as administrator: 
     23    CREATE DATABASE 'basename' OWNER TO 'rolename'; 
     24  From command line: 
     25    createdb basename -O rolename 
     26 
     27- restore the based schema with sql/postgres.dump AS rolename 
     28  psql -u rolename basename < sql/postgres.dump 
     29 
     30(Refer to postgresql documentation for more options) 
    1831 
    1932Copy the vote.yml.example to /etc/vote.yml then edit it: 
Note: See TracChangeset for help on using the changeset viewer.