Edgewall Software
Modify

Opened 17 years ago

Closed 17 years ago

#4634 closed defect (worksforme)

trac-admin does not work in bacth mode

Reported by: anonymous Owned by: Christopher Lenz
Priority: normal Milestone:
Component: admin/console Version: 0.10.1
Severity: normal Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

the command

subv:~ # trac-admin initenv jaja sqlite:db/trac.db svn /srv/svn/repos/jaja /usr/local/share/trac/templates

give following output

*** Unknown syntax: jaja 'sqlite:db/trac.db' 'svn' '/srv/svn/repos/jaja' '/usr/local/share/trac/templates'
subv:~ #

Attachments (0)

Change History (1)

comment:1 by Christian Boos, 17 years ago

Resolution: worksforme
Status: newclosed

It should have been trac-admin $TRAC_ENV initenv .... In your example, initenv was taken for the TracEnvironment, and jaja for the command.

initenv [<projectname> <db>]

    Create and initialize a new environment

    If no arguments are given, then the required parameters are requested
    interactively unless the optional argument `--config` is specified.

    One or more optional arguments --inherit=PATH can be used to specify the
    "[inherit] file" option at environment creation time, so that only the
    options not already specified in one of the global configuration files are
    written to the conf/trac.ini file of the newly created environment.
    Relative paths are resolved relative to the "conf" directory of the new
    environment.

    The optional argument --config=PATH can be used to specify a configuration
    file that is used to populate the environment configuration. The arguments
    <projectname>, <db> and any other arguments passed in the invocation are
    optional, but if specified will override values in the configuration file.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Christopher Lenz.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Christopher Lenz to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.