Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
slapos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Georgios Dagkakis
slapos
Commits
61ffc2e2
Commit
61ffc2e2
authored
May 31, 2013
by
Alain Takoudjou
Browse files
Options
Browse Files
Download
Plain Diff
Merge branche "trac" into master
parents
9eb42b86
1f2626e2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
slapos/recipe/trac.py
slapos/recipe/trac.py
+3
-3
No files found.
slapos/recipe/trac.py
View file @
61ffc2e2
...
@@ -96,12 +96,12 @@ class Recipe(GenericBaseRecipe):
...
@@ -96,12 +96,12 @@ class Recipe(GenericBaseRecipe):
else
:
else
:
self
.
logger
.
info
(
"The directory %s already exist, skip project installation"
self
.
logger
.
info
(
"The directory %s already exist, skip project installation"
%
project_dir
)
%
project_dir
)
trac_args
=
[
trac_admin
,
project_dir
,
'
upgrade
'
]
trac_args
=
[
trac_admin
,
project_dir
,
'
repository'
,
'list
'
]
process_upgrade
=
subprocess
.
Popen
(
trac_args
,
stdout
=
subprocess
.
PIPE
,
process_upgrade
=
subprocess
.
Popen
(
trac_args
,
stdout
=
subprocess
.
PIPE
,
stderr
=
subprocess
.
STDOUT
,
env
=
env
)
stderr
=
subprocess
.
STDOUT
)
result
=
process_upgrade
.
communicate
()[
0
]
result
=
process_upgrade
.
communicate
()[
0
]
if
process_upgrade
.
returncode
is
None
or
process_upgrade
.
returncode
!=
0
:
if
process_upgrade
.
returncode
is
None
or
process_upgrade
.
returncode
!=
0
:
self
.
logger
.
error
(
"Failed to
upgrade
Trac.
\
n
The error was: %s"
%
result
)
self
.
logger
.
error
(
"Failed to
run
Trac.
\
n
The error was: %s"
%
result
)
return
[]
return
[]
#Add All grant to admin user
#Add All grant to admin user
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment