~azzar1/unity/add-show-desktop-key

« back to all changes in this revision

Viewing changes to doc/setup/install_proc.txt

  • Committer: mattgiuca
  • Date: 2008-12-18 05:38:28 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:1059
install_proc.txt: Changed so that you now create a new DB user "ivleuser"
    rather than using the superuser, "postgres".

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
# Configure postgres
30
30
##########################################################################
31
31
 
32
 
# Set the postgres user's postgres password
 
32
# Create a new database user which will be used by IVLE to talk to the DB, and
 
33
# set this user's password.
33
34
# At the prompt type (substituting <***password***> with a real one).
34
 
sudo -u postgres psql -c "ALTER USER postgres WITH ENCRYPTED PASSWORD '<***password***>'"
 
35
sudo -u postgres psql -c "CREATE USER ivleuser WITH ENCRYPTED PASSWORD '<***password***>'"
35
36
 
36
37
##########################################################################
37
38
# Installing ivle
45
46
# Create a postgres database
46
47
# (only need the first line if it was previously created and is now changed)
47
48
sudo -u postgres dropdb ivle
48
 
sudo -u postgres createdb ivle
 
49
sudo -u postgres createdb --owner ivleuser ivle
49
50
sudo -u postgres createlang plpgsql ivle
50
51
sudo -u postgres psql -d ivle < userdb/users.sql
51
52
 
124
125
# Create a postgres database
125
126
# (only need the first line if it was previously created and is now changed)
126
127
sudo -u postgres dropdb ivle_forum
127
 
sudo -u postgres createdb ivle_forum
 
128
sudo -u postgres createdb --owner ivleuser ivle_forum
128
129
sudo -u postgres psql -d ivle_forum < userdb/forum_schema.sql
129
130
sudo -u postgres psql -d ivle_forum < userdb/forum_data.sql
130
131