Modify ↓
Opened 19 years ago
Closed 18 years ago
#2027 closed enhancement (duplicate)
trac-admin initenv should continue if existing directory is empty
Reported by: | Owned by: | daniel | |
---|---|---|---|
Priority: | lowest | Milestone: | |
Component: | admin/console | Version: | 0.8.4 |
Severity: | trivial | Keywords: | |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description (last modified by )
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 (0)
Change History (2)
comment:1 by , 19 years ago
Description: | modified (diff) |
---|---|
Summary: | trac-admin initenv doesn't work if user has "helpfully" created directory already → trac-admin initenv should continue if existing directory is empty |
comment:2 by , 18 years ago
Resolution: | → duplicate |
---|---|
Status: | new → 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.