Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.toolbox
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Hardik Juneja
slapos.toolbox
Commits
674ad139
Commit
674ad139
authored
Sep 13, 2013
by
Nicolas Wavrant
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug fix : the slapos repo couldn't be downloaded if no user had registered
parent
0f38ef39
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
7 deletions
+3
-7
slapos/runner/__init__.py
slapos/runner/__init__.py
+1
-1
slapos/runner/utils.py
slapos/runner/utils.py
+2
-6
No files found.
slapos/runner/__init__.py
View file @
674ad139
...
...
@@ -150,9 +150,9 @@ def serve(config):
os
.
mkdir
(
workdir
)
if
not
os
.
path
.
exists
(
software_link
):
os
.
mkdir
(
software_link
)
cloneDefaultGit
(
app
.
config
)
slapos
.
runner
.
process
.
setHandler
()
config
.
logger
.
info
(
'Running slapgrid...'
)
cloneDefaultGit
(
app
.
config
)
runInstanceWithLock
(
app
.
config
)
config
.
logger
.
info
(
'Done.'
)
app
.
wsgi_app
=
ProxyFix
(
app
.
wsgi_app
)
...
...
slapos/runner/utils.py
View file @
674ad139
...
...
@@ -809,13 +809,9 @@ def cloneDefaultGit(config):
"""Test if the slapos git has been downloaded yet
If not, download it in read-only mode"""
slap = os.path.join(config['
runner_workdir
'], '
project
', '
slapos
')
slap_ro = os.path.join(config['
runner_workdir
'], '
project
', '
slapos
-
readonly
')
if not os.path.exists(slap_ro) or not os.path.exists(slap_ro):
if not os.path.exists(slap):
from gittools import cloneRepo
user = getSession(config)
data = {'
path
': slap_ro,
data = {'
path
': slap,
'
repo
': '
http
:
//
git
.
erp5
.
org
/
repos
/
slapos
.
git
',
'
email
': user[2],
'
user
': user[3],
}
cloneRepo(data)
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