Show
Ignore:
Timestamp:
09/27/08 22:02:37 (16 years ago)
Author:
jerome
Message:

Removed unnecessary spaces at EOL.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/initscripts/postgresql/README.postgresql

    r3279 r3413  
    3131        - edit the pykota-postgresql.sql file and modify the passwords on 
    3232          the 'CREATE USER' lines. 
    33            
     33 
    3434        - Launch the psql frontend and connect to the 
    3535          database template1 as a PostgreSQL administrator 
    3636          (i.e. the postgres user) : 
    37            
     37 
    3838          as user 'root' : 
    39            
     39 
    4040            # su - postgres 
    41              
    42           you're now user 'postgres', then continue with :    
    43            
     41 
     42          you're now user 'postgres', then continue with : 
     43 
    4444            $ psql -f pykota-postgresql.sql template1 
    45              
    46           or depending on your settings you may prefer :   
    47            
     45 
     46          or depending on your settings you may prefer : 
     47 
    4848            $ psql -h localhost -U postgres -f pykota-postgresql.sql template1 
    49            
    50         - If no error message appears, your PostgreSQL PyKota storage  
     49 
     50        - If no error message appears, your PostgreSQL PyKota storage 
    5151          is now ready for use. NB : a lot of NOTICE messages might appear, 
    5252          this is perfectly normal. 
    53            
     53 
    5454        - In ~pykota/pykota.conf, ensure that the following lines 
    5555          are present and unique inside the [global] section : 
    56          
     56 
    5757            storagebackend : pgstorage 
    5858            storageserver : localhost 
     
    6060            storageuser : pykotauser 
    6161            storageuserpw : readonlypw 
    62              
     62 
    6363            NB : replace 'readonlypw' with the password you chose 
    6464            for user 'pykotauser' when you modified pykota-postgresql.sql 
    65              
     65 
    6666        - In ~pykota/pykotadmin.conf ensure that the following lines 
    6767          are present and unique inside the [global] section : 
    68          
     68 
    6969            storageadmin : pykotaadmin 
    7070            storageadminpw : readwritepw 
    71              
     71 
    7272            NB : replace 'readwritepw' with the password you chose 
    7373            for user 'pykotaadmin' when you modified pykota-postgresql.sql 
    74          
    75         - IMPORTANT : if your database is not located on the print server,  
    76           replace 'localhost' in the lines above with your database server's  
     74 
     75        - IMPORTANT : if your database is not located on the print server, 
     76          replace 'localhost' in the lines above with your database server's 
    7777          hostname or IP address. If your database server doesn't listen on 
    7878          its standard port, add the port number at the end of the hostname 
    7979          with a colon to separate the hostname from the port. 
    8080          See pykota/conf/pykota.conf.sample for examples. 
    81            
     81 
    8282============================================================ 
    8383 
     
    8989  Some scripts to upgrade old PyKota databases to the new 
    9090  database schema are included. You may have to run all 
    91   of them or only some of them, depending on your  
     91  of them or only some of them, depending on your 
    9292  version of PyKota. Usually running them several times, for 
    9393  example if you used several different development versions 
    9494  of PyKota, won't do any harm. 
    95    
     95 
    9696  If you're connected as user 'root', you have to be user 'postgres' 
    9797  instead : 
    98            
     98 
    9999            # su - postgres 
    100              
     100 
    101101  You're now user 'postgres', then continue the upgrade by following 
    102102  the instructions below, depending on the version you actually use : 
    103    
     103 
    104104  * An SQL script to upgrade a 1.22 PyKota Storage DataBase to 
    105105    1.23 is included. Launch it this way on the Quota Storage Server : 
    106      
     106 
    107107        $ psql -U postgres pykota 
    108108        pykota=# \i upgrade-to-1.23.sql 
    109109        pykota=# \q 
    110110        $ 
    111          
     111 
    112112    This script adds many fields to existing tables, and a table to 
    113113    manage billing codes. 
    114      
     114 
    115115  * An SQL script to upgrade a 1.20 PyKota Storage DataBase to 
    116116    1.21 is included. Launch it this way on the Quota Storage Server : 
    117      
     117 
    118118        $ psql -U postgres pykota 
    119119        pykota=# \i upgrade-to-1.21.sql 
    120120        pykota=# \q 
    121121        $ 
    122          
     122 
    123123    This script adds many fields to existing tables, and also adds 
    124124    some tables in indexes. 
    125      
     125 
    126126  * An SQL script to upgrade a 1.18 PyKota Storage DataBase to 
    127127    1.19 is included. Launch it this way on the Quota Storage Server : 
    128      
     128 
    129129        $ psql -U postgres pykota 
    130130        pykota=# \i upgrade-to-1.19.sql 
    131131        pykota=# \q 
    132132        $ 
    133          
     133 
    134134    This script adds a field to the print job history. The field that 
    135135    is added is : hostname 
    136      
     136 
    137137  * An SQL script to upgrade a pre-1.16 PyKota Storage DataBase to 
    138138    1.16 is included. Launch it this way on the Quota Storage Server : 
    139      
     139 
    140140        $ psql -U postgres pykota 
    141141        pykota=# \i upgrade-to-1.16.sql 
    142142        pykota=# \q 
    143143        $ 
    144          
     144 
    145145    This script adds some fields to the print job history, so that 
    146146    more complete information will be known. The fields that 
    147     are added are : jobprice, filename, title, copies and print  
     147    are added are : jobprice, filename, title, copies and print 
    148148    command options. Also some indexes are created to speed things up. 
    149    
    150 What is below is for historical reasons only, real people don't use   
     149 
     150What is below is for historical reasons only, real people don't use 
    151151such old beasts, and YOU SHOULDN'T EITHER ! 
    152152 
    153153  * An SQL script to upgrade a pre-1.14 PyKota Storage DataBase to 
    154154    1.14 is included. Launch it this way on the Quota Storage Server : 
    155      
     155 
    156156        $ psql -U postgres pykota 
    157157        pykota=# \i upgrade-to-1.14.sql 
    158158        pykota=# \q 
    159159        $ 
    160          
    161     This script adds an "email" field for each user. This field, if not     
     160 
     161    This script adds an "email" field for each user. This field, if not 
    162162    NULL, is used as the email address of the user when sending warning 
    163163    messages in case he is over quota. 
    164      
    165   * An sql script to upgrade a pre-1.01 PyKota Quota Storage DataBase to  
    166     1.01 is still included for historical reasons. PLEASE DON'T USE IT !  
    167    
    168   * If you are already running an old version of PyKota (<1.03) and  
    169     want to upgrade to 1.03, YOU HAVE TO RUN the  
    170     upgrade-from-before-1.03.py shell script. NOT LAUNCHING THIS SCRIPT  
    171     WILL CAUSE PYKOTA TO STOP WORKING ! PLEASE NEVER RUN THIS SCRIPT IF  
    172     YOUR EXISTING VERSION OF PYKOTA IS ALREADY 1.03 OR HIGHER.  
     164 
     165  * An sql script to upgrade a pre-1.01 PyKota Quota Storage DataBase to 
     166    1.01 is still included for historical reasons. PLEASE DON'T USE IT ! 
     167 
     168  * If you are already running an old version of PyKota (<1.03) and 
     169    want to upgrade to 1.03, YOU HAVE TO RUN the 
     170    upgrade-from-before-1.03.py shell script. NOT LAUNCHING THIS SCRIPT 
     171    WILL CAUSE PYKOTA TO STOP WORKING ! PLEASE NEVER RUN THIS SCRIPT IF 
     172    YOUR EXISTING VERSION OF PYKOTA IS ALREADY 1.03 OR HIGHER.