Update rb-site to allow for automation

Review Request #693 — Created Jan. 12, 2009 and submitted — Latest diff uploaded

Information

Review Board SVN (deprecated)
trunk

Reviewers

Adds a --noinput option that requires the use of a new set of options to specify answers to the normally prompted questions.
$ ./rb-site install /tmp/rbtest --domain-name review.example.com --db-type postgresql --db-user reviewboard --db-pass foo --cache-type memcached --cache-info memcached://localhost:11211/ --web-server-type apache --python-loader modpython --admin-password bar --admin-email foo@example.com --noinput


* Installing the site...
Building site directories ... OK
Building site configuration files ... OK
Creating database ... Installing json fixture 'initial_data' from '/usr/lib/python2.5/site-packages/ReviewBoard-0.9.dev_20090108-py2.5.egg/reviewboard/scmtools/fixtures'.
Installed 6 object(s) from 1 fixture(s)
OK
Performing migrations ... No evolution required.
OK
Creating administrator account ... OK
Saving site settings ... OK


* The site has been installed

    The site has been installed in /tmp/rbtest

    Sample configuration files for web servers and cron are available
    in the conf/ directory.

    You need to modify the ownership of htdocs/media/uploaded
    directory and all of its contents to be owned by the web server.