[695] | 1 | # $Id$ |
---|
| 2 | |
---|
[2478] | 3 | PyKota - Print Quotas for CUPS and LPRng |
---|
[695] | 4 | |
---|
[2028] | 5 | (c) 2003, 2004, 2005 Jerome Alet <alet@librelogiciel.com> |
---|
[873] | 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. |
---|
[695] | 10 | |
---|
[873] | 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. |
---|
[695] | 15 | |
---|
[873] | 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 |
---|
[2303] | 18 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
---|
[873] | 19 | |
---|
[695] | 20 | ============================================================ |
---|
| 21 | |
---|
| 22 | This directory contains scripts to initialise the PyKota |
---|
| 23 | storage database. Use the one which best suits your need |
---|
[887] | 24 | depending on the storage backend you want to use. |
---|
[695] | 25 | |
---|
[1015] | 26 | There's one subdirectory per backend type supported. |
---|
[887] | 27 | |
---|
| 28 | Files : |
---|
| 29 | ======= |
---|
| 30 | |
---|
[1015] | 31 | * postgresql/pykota-postgresql.sql : |
---|
[887] | 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 | |
---|
[1015] | 37 | * ldap/pykota.schema : |
---|
[1007] | 38 | |
---|
| 39 | This file adds the necessary classes and attributes to an existing |
---|
[1037] | 40 | LDAP directory for use with PyKota. Read this file and the |
---|
| 41 | associated ldap/README.ldap files for details. |
---|
[1007] | 42 | |
---|
[1015] | 43 | |
---|
| 44 | Old files, kept to allow people to upgrade from very old versions of PyKota : |
---|
| 45 | ============================================================================= |
---|
| 46 | |
---|
[1473] | 47 | * upgrade-to-1.19.sql : |
---|
| 48 | |
---|
| 49 | This file upgrades the PostgreSQL Quota Storage Database schema |
---|
| 50 | from versions before 1.19alpha7 to version 1.19alpha7 and above. |
---|
| 51 | NEVER USE IT IF YOU ALREADY RUN 1.19alpha7 OR ABOVE ! |
---|
| 52 | |
---|
[1200] | 53 | * upgrade-to-1.16.sql : |
---|
| 54 | |
---|
| 55 | This file upgrades the PostgreSQL Quota Storage Database schema |
---|
| 56 | from versions before 1.16 to version 1.16. |
---|
| 57 | NEVER USE IT IF YOU ALREADY RUN 1.16 OR ABOVE ! |
---|
| 58 | |
---|
| 59 | * upgrade-to-1.14.sql : |
---|
| 60 | |
---|
| 61 | This file upgrades the PostgreSQL Quota Storage Database schema |
---|
| 62 | from versions before 1.14 to version 1.14. |
---|
| 63 | NEVER USE IT IF YOU ALREADY RUN 1.14 OR ABOVE ! |
---|
| 64 | |
---|
[942] | 65 | * VERYOLDpykota-upgrade-postgresql.sql : |
---|
[887] | 66 | |
---|
[889] | 67 | This file upgrades the PostgreSQL Quota Storage Database schema |
---|
[887] | 68 | from versions before 1.01 to version 1.01. |
---|
| 69 | |
---|
[951] | 70 | IT'S THERE FOR HISTORICAL REASONS ONLY : DON'T USE IT, USE |
---|
| 71 | THE SCRIPT DESCRIBED BELOW INSTEAD ! |
---|
| 72 | |
---|
[942] | 73 | * upgrade-from-before-1.03.py : |
---|
[887] | 74 | |
---|
| 75 | This shell script upgrades the PostgreSQL Quota Storage Database schema |
---|
| 76 | from versions 1.01 or 1.02 to version 1.03. |
---|
| 77 | PLEASE DO A BACKUP OF YOUR PYKOTA DATABASE BEFORE RUNNING THIS SCRIPT ! |
---|
| 78 | Also this script will try to connect to PostgreSQL as the postgres user |
---|
| 79 | (i.e. PostgreSQL's administrator), on the local machine (PyKota Storage |
---|
| 80 | Server), without prompting for a password. Please read this script and |
---|
| 81 | adapt it to your own configuration before running it. THIS IS IMPORTANT. |
---|
[942] | 82 | |
---|
| 83 | THIS SCRIPT MAKES ANY REASONABLE CHECK TO ENSURE THAT YOUR DATAS WON'T |
---|
| 84 | BE LOST, AND ALSO DUMPS YOUR OLD DATABASE TO A TEXT FILE BEFORE DOING |
---|
| 85 | ANYTHING. IT WAS TESTED SEVERAL TIMES AND SHOULDN'T PRODUCE ANY ERROR |
---|
| 86 | EXCEPT ABOUT THE pykotaadmin and pykotauser POSTGRESQL USERS WHO |
---|
| 87 | ALREADY EXIST WHEN THE DATABASE SCHEMA IS UPGRADED. THIS IS NORMAL ! |
---|
[887] | 88 | |
---|