[daisy] [JIRA] Created: (DSY-429) Installation scripts enhancements

Bruno Dumon (JIRA) issues at cocoondev.org
Fri Mar 16 04:54:20 CDT 2007


Installation scripts enhancements
---------------------------------

         Key: DSY-429
         URL: http://issues.cocoondev.org//browse/DSY-429
     Project: Daisy
        Type: Improvement
 Reporter: Bruno Dumon
    Priority: Minor
     Fix For: public - 2.1


(the below are some very rough notes, not much time to think deep about this right now -- feel free to add/correct)

Currently we have the following installation scripts:
 - daisy-repository-init
 - daisy-wiki-init
 - daisy-wikidata-init
 - daisywiki-add-site

These can be run in different modes:
 - interactive setup
 - interactive setup "advanced mode" (asks more questions)
 - automated setup: doesn't ask questions but takes parameters from a properties file
 - development setup

The following enhancements would be desirable:

 - the parallel code paths of the interactive and automated install are quite difficult to follow (in the code)
      possible approaches:
         - use just one code path, when a parameter is needed a callback interface is called which either asks the user or reads a property (potential problem: presence of all properties is not checked at start of script)
         - install routine takes an object containing all required parameters as argument (as is already somewhat the case in DaisyWikiInitDataDirectory). This object should preferably also have the methods to check the validity of the values, so that this code can be shared between different installation modes. This approach is probably the best one, as it allows the user to first enter all parameters, confirm (and possibly go back), and then the installation is run.
         - ...

 - for initial setup, it would improve the user experience if daisy-wiki-init, daisy-wikidata-init and daisywiki-add-site can be run as one program (e.g. daisy-wiki-setup), avoiding the need to start multiple scripts and entering repository credentials multiple times

 - the part of the routine that installs the service wrapper things in the datadir should be separately executable, e.g. to install new versions when daisy is upgraded.

 - on-screen aesthetics can be improved: all messages should fit on 80 columns, 25 lines

 - more error-checking on entered parameters, make things more robust (avoid as much the possibility that the user screws things up + allow to restart)

 - ....

Not to forget: the scripts shouldn't assume the repository and wiki are installed on the same machine (?)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.cocoondev.org//secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira



More information about the daisy mailing list