Changeset 1149 for pykota/trunk/setup.py

Show
Ignore:
Timestamp:
10/08/03 09:01:20 (21 years ago)
Author:
jalet
Message:

Job history can be disabled.
Some typos in README.
More messages in setup script.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/setup.py

    r1144 r1149  
    2424# 
    2525# $Log$ 
     26# Revision 1.25  2003/10/08 07:01:19  jalet 
     27# Job history can be disabled. 
     28# Some typos in README. 
     29# More messages in setup script. 
     30# 
    2631# Revision 1.24  2003/10/07 09:07:27  jalet 
    2732# Character encoding added to please latest version of Python 
     
    163168            return ACTION_ABORT 
    164169     
    165 if "install" in sys.argv : 
     170if ("install" in sys.argv) and not ("help" in sys.argv) : 
    166171    # checks if Python version is correct, we need >= 2.1 
    167172    if not (sys.version > "2.1") : 
     
    268273                sys.stderr.write("INSTALLATION ABORTED BECAUSE CONFIGURATION INCOMPLETE.\n") 
    269274                sys.exit(-1) 
    270          
     275                 
     276        # Say something about caching mechanism and disabling job history 
     277        sys.stdout.write("You can now activate the database caching mechanism\nwhich is disabled by default.\nIt is especially recommanded with the LDAP backend.\n") 
     278        sys.stdout.write("You can now disable the preservation of the complete\njob history which is enabled by default.\nIt is probably more useful with the LDAP backend.\n") 
     279        sys.stdout.write("PLEASE LOOK AT THE SAMPLE CONFIGURATION FILE conf/pykota.conf.sample\n") 
     280        sys.stdout.write("TO LEARN HOW TO DO\n") 
     281        dummy = raw_input("Please press ENTER when you have read the message above. ") 
     282        sys.stdout.write("\n") 
     283             
    271284    # change files permissions     
    272285    os.chmod("/etc/pykota/pykota.conf", 0644) 
     
    279292    sys.stdout.write("PLEASE READ DOCUMENTATION IN initscripts/postgresql/ TO LEARN HOW TO DO.\n") 
    280293    sys.stdout.write("YOU CAN DO THAT AFTER THE INSTALLATION IS FINISHED, OR PRESS CTRL+C NOW.\n") 
    281     sys.stdout.write("\n\nYOU DON'T HAVE ANYTHING SPECIAL TO DO IF THIS IS YOUR FIRST INSTALLATION.\n\n") 
     294    sys.stdout.write("\n\nYOU DON'T HAVE ANYTHING SPECIAL TO DO IF THIS IS YOUR FIRST INSTALLATION\nOR IF YOU ARE ALREADY RUNNING VERSION 1.14 OR ABOVE.\n\n") 
    282295    dummy = raw_input("Please press ENTER when you have read the message above. ") 
    283296