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

« back to all changes in this revision

Viewing changes to doc/upgrade.txt

  • Committer: dcoles
  • Date: 2008-07-18 02:40:58 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:912
Makeuser: Makeuser will now chown all files in a users home directory to the
unixid provided by the database. This means remakeallusers.py can be used to
update everyones unixids after a database change. The makeuser script will also 
no longer generate a random unixid when one is not given on the command line.

Database: Change to database so that a sequence is used by default. The allowed  
range is 1000-29999 (let's start at 5000, because 1000+ is used by adduser.  
Reference: http://www.debian.org/doc/debian-policy/ch-opersys.html)
See SF Bug '[ 2012190 ] Student UID generation'
Migration script will reallocate all users a new unixid from the sequence.

Usermgt-Server: Now no longer generates a random unixid. Rely on the database 
to come up with a new sequence number.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
Upgrade Procedure for IVLE
2
 
==========================
3
 
 
4
 
Upgrading to a new version of IVLE is generally fairly painless, but
5
 
there are several steps involved.
6
 
 
7
 
Firstly, in the IVLE checkout, bring your codebase up to date:
8
 
 
9
 
  svn up
10
 
 
11
 
Then build IVLE:
12
 
 
13
 
  ./setup.py build
14
 
 
15
 
Now comes the time to block external access to IVLE. Stopping Apache
16
 
on each server in the cluster and killing any remaining python-console
17
 
processes is highly recommended.
18
 
 
19
 
You should then run any outstanding database migrations. A note of the
20
 
latest applied migration should probably be kept somewhere to avoid
21
 
running the same one twice. This command must be run once for each.
22
 
 
23
 
  sudo -u postgres psql ivle < userdb/migrations/YYYYMMDD-NN.sql
24
 
 
25
 
Now we can install the new version, and update the jails:
26
 
 
27
 
  sudo ./setup.py install
28
 
  sudo ivle-buildjail
29
 
 
30
 
Note that this will not perform a full rebuild of the template jail -
31
 
only the IVLE files inside the jail will be updated. To force a full
32
 
jail rebuild, give ivle-buildjail the -r option.
33
 
 
34
 
... and remake the user jails, as this will occasionally be needed:
35
 
 
36
 
  ivle-remakeuser --all --verbose
37
 
 
38
 
Restart the usrmgt-server and all Apaches, reenable external access,
39
 
check that everything works, and you're done!