Modify ↓
Ticket #2027 (closed enhancement: duplicate)
Opened 6 years ago
Last modified 6 years ago
trac-admin initenv should continue if existing directory is empty
| Reported by: | mdorey@… | Owned by: | daniel |
|---|---|---|---|
| Priority: | lowest | Milestone: | |
| Component: | admin/console | Version: | 0.8.4 |
| Severity: | trivial | Keywords: | |
| Cc: | |||
| Release Notes: | |||
| API Changes: | |||
Description (last modified by mgood) (diff)
If the directory for the Trac environment exists before trying to initialize it Trac fails with the error:
Creating and Initializing Project Failed to create environment. [Errno 17] File exists: '/home/software/trac-root/salma-hayek' Failed to initialize database. 1
If the existing directory is empty Trac should proceed to create the environment. This is consistent with svnadmin create which will proceed unless the directory exists and is not empty.
Also with the interactive initialization it would be good to make this check once before the questions so that it can fail sooner.
Attachments
Change History
comment:1 Changed 6 years ago by mgood
- Description modified (diff)
- Summary changed from trac-admin initenv doesn't work if user has "helpfully" created directory already to trac-admin initenv should continue if existing directory is empty
comment:2 Changed 6 years ago by mgood
- Resolution set to duplicate
- Status changed from new to closed
This is the same as #3055 which has already been implemented.
Note: See
TracTickets for help on using
tickets.



Cleaned up the decription.
Please try to keep tickets a bit more concise. Two full installation logs aren't really necessary to descript the topic here.