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
Valentin Benozillo
slapos
Commits
ff0a3100
Commit
ff0a3100
authored
Mar 23, 2012
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Typo
parent
be7d85b1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
9 deletions
+9
-9
slapos/recipe/erp5_bootstrap/__init__.py
slapos/recipe/erp5_bootstrap/__init__.py
+2
-2
slapos/recipe/erp5_bootstrap/template/erp5_bootstrap.in
slapos/recipe/erp5_bootstrap/template/erp5_bootstrap.in
+7
-7
No files found.
slapos/recipe/erp5_bootstrap/__init__.py
View file @
ff0a3100
...
@@ -52,9 +52,9 @@ class Recipe(GenericBaseRecipe):
...
@@ -52,9 +52,9 @@ class Recipe(GenericBaseRecipe):
python_path
=
sys
.
executable
,
python_path
=
sys
.
executable
,
user
=
zope_parsed
.
username
,
user
=
zope_parsed
.
username
,
password
=
zope_parsed
.
password
,
password
=
zope_parsed
.
password
,
site
-
id
=
zope_parsed
.
split
(
'/'
)[
1
],
site
_id
=
zope_parsed
.
path
.
split
(
'/'
)[
1
],
host
=
"%s:%s"
%
(
zope_parsed
.
hostname
,
zope_parsed
.
port
),
host
=
"%s:%s"
%
(
zope_parsed
.
hostname
,
zope_parsed
.
port
),
sql
-
connection
-
string
=
mysql_connection_string
,
sql
_connection_
string
=
mysql_connection_string
,
)
)
# Runners
# Runners
...
...
slapos/recipe/erp5_bootstrap/template/erp5_bootstrap.in
View file @
ff0a3100
...
@@ -4,15 +4,15 @@ import httplib
...
@@ -4,15 +4,15 @@ import httplib
import urllib
import urllib
import base64
import base64
user =
%(user)s
user =
"%(user)s"
password =
%(password)s
password =
"%(password)s"
host =
%(host)s
host =
"%(host)s"
site_id =
%(site-id)s
site_id =
"%(site_id)s"
erp5_catalog_storage = 'erp5_mysql_innodb_catalog'
erp5_catalog_storage = 'erp5_mysql_innodb_catalog'
mysql_url =
%(sql-connection-string)s
mysql_url =
"%(sql_connection_string)s"
header_dict = {'Authorization': 'Basic %
s'
% \
header_dict = {'Authorization': 'Basic %
%s' %
% \
base64.encodestring('%
s:%s'
% (user, password)).strip()}
base64.encodestring('%
%s:%%s' %
% (user, password)).strip()}
zope_connection = httplib.HTTPConnection(host)
zope_connection = httplib.HTTPConnection(host)
# Check if an ERP5 site is already created, as ERP5 does support having
# Check if an ERP5 site is already created, as ERP5 does support having
...
...
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