1 | # $Id$ |
---|
2 | |
---|
3 | PyKota - Print Quota for CUPS and LPRng |
---|
4 | |
---|
5 | (c) 2003 Jerome Alet <alet@librelogiciel.com> |
---|
6 | This program is free software; you can redistribute it and/or modify |
---|
7 | it under the terms of the GNU General Public License as published by |
---|
8 | the Free Software Foundation; either version 2 of the License, or |
---|
9 | (at your option) any later version. |
---|
10 | |
---|
11 | This program is distributed in the hope that it will be useful, |
---|
12 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
14 | GNU General Public License for more details. |
---|
15 | |
---|
16 | You should have received a copy of the GNU General Public License |
---|
17 | along with this program; if not, write to the Free Software |
---|
18 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. |
---|
19 | |
---|
20 | ============================================================ |
---|
21 | |
---|
22 | This directory contains scripts to initialise the PyKota |
---|
23 | storage database. Use the one which best suits your need |
---|
24 | depending on the storage backend you want to use. |
---|
25 | |
---|
26 | There's one subdirectory per backend type supported. |
---|
27 | |
---|
28 | Files : |
---|
29 | ======= |
---|
30 | |
---|
31 | * postgresql/pykota-postgresql.sql : |
---|
32 | |
---|
33 | This file creates an empty Quota Storage Database, using PostgreSQL |
---|
34 | as a backend. You have to use it the first time you install PyKota |
---|
35 | if you want to use PostgreSQL as the Quota Storage Backend. |
---|
36 | |
---|
37 | * ldap/pykota.schema : |
---|
38 | |
---|
39 | This file adds the necessary classes and attributes to an existing |
---|
40 | LDAP directory for use with PyKota. Read this file for details. |
---|
41 | |
---|
42 | |
---|
43 | Old files, kept to allow people to upgrade from very old versions of PyKota : |
---|
44 | ============================================================================= |
---|
45 | |
---|
46 | * VERYOLDpykota-upgrade-postgresql.sql : |
---|
47 | |
---|
48 | This file upgrades the PostgreSQL Quota Storage Database schema |
---|
49 | from versions before 1.01 to version 1.01. |
---|
50 | |
---|
51 | IT'S THERE FOR HISTORICAL REASONS ONLY : DON'T USE IT, USE |
---|
52 | THE SCRIPT DESCRIBED BELOW INSTEAD ! |
---|
53 | |
---|
54 | * upgrade-from-before-1.03.py : |
---|
55 | |
---|
56 | This shell script upgrades the PostgreSQL Quota Storage Database schema |
---|
57 | from versions 1.01 or 1.02 to version 1.03. |
---|
58 | PLEASE DO A BACKUP OF YOUR PYKOTA DATABASE BEFORE RUNNING THIS SCRIPT ! |
---|
59 | Also this script will try to connect to PostgreSQL as the postgres user |
---|
60 | (i.e. PostgreSQL's administrator), on the local machine (PyKota Storage |
---|
61 | Server), without prompting for a password. Please read this script and |
---|
62 | adapt it to your own configuration before running it. THIS IS IMPORTANT. |
---|
63 | |
---|
64 | THIS SCRIPT MAKES ANY REASONABLE CHECK TO ENSURE THAT YOUR DATAS WON'T |
---|
65 | BE LOST, AND ALSO DUMPS YOUR OLD DATABASE TO A TEXT FILE BEFORE DOING |
---|
66 | ANYTHING. IT WAS TESTED SEVERAL TIMES AND SHOULDN'T PRODUCE ANY ERROR |
---|
67 | EXCEPT ABOUT THE pykotaadmin and pykotauser POSTGRESQL USERS WHO |
---|
68 | ALREADY EXIST WHEN THE DATABASE SCHEMA IS UPGRADED. THIS IS NORMAL ! |
---|
69 | |
---|