Modify ↓
Opened 19 years ago
Closed 19 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)
Note:
See TracTickets
for help on using tickets.



It should have been
trac-admin $TRAC_ENV initenv .... In your example,initenvwas taken for the TracEnvironment, andjajafor 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.