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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Douglas
slapos
Commits
e831443c
Commit
e831443c
authored
Jun 28, 2011
by
Łukasz Nowak
Committed by
Arnaud Fontaine
Jul 15, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make mysql server configurable.
parent
7e289d62
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
56 additions
and
53 deletions
+56
-53
slapos/recipe/erp5/__init__.py
slapos/recipe/erp5/__init__.py
+56
-53
No files found.
slapos/recipe/erp5/__init__.py
View file @
e831443c
...
...
@@ -986,7 +986,8 @@ class Recipe(BaseSlapRecipe):
def
installMysqlServer
(
self
,
ip
,
port
,
database
=
'erp5'
,
user
=
'user'
,
test_database
=
'test_erp5'
,
test_user
=
'test_user'
,
template_filename
=
None
,
parallel_test_database_amount
=
100
,
mysql_conf
=
None
):
parallel_test_database_amount
=
100
,
mysql_conf
=
None
,
with_backup
=
True
,
with_maatkit
=
True
):
if
mysql_conf
is
None
:
mysql_conf
=
{}
backup_directory
=
self
.
createBackupDirectory
(
'mysql'
)
...
...
@@ -1060,6 +1061,7 @@ class Recipe(BaseSlapRecipe):
)]))
self
.
path_list
.
extend
([
mysql_conf_path
])
if
with_backup
:
# backup configuration
backup_directory
=
self
.
createBackupDirectory
(
'mysql'
)
full_backup
=
os
.
path
.
join
(
backup_directory
,
'full'
)
...
...
@@ -1094,6 +1096,7 @@ class Recipe(BaseSlapRecipe):
open
(
mysql_backup_cron
,
'w'
).
write
(
'0 0 * * * '
+
backup_controller
)
self
.
path_list
.
append
(
mysql_backup_cron
)
if
with_maatkit
:
# maatkit installation
for
mk_script_name
in
(
'mk-variable-advisor'
,
...
...
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