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
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
Thomas Leymonerie
slapos
Commits
08279b9c
Commit
08279b9c
authored
Jun 21, 2011
by
Romain Courteaud
Committed by
Arnaud Fontaine
Jul 15, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use librecipe.execute to provide perl binary.
Without this, system perl will be used.
parent
ffb60cc3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
0 deletions
+24
-0
slapos/recipe/erp5/__init__.py
slapos/recipe/erp5/__init__.py
+24
-0
No files found.
slapos/recipe/erp5/__init__.py
View file @
08279b9c
...
@@ -1093,5 +1093,29 @@ class Recipe(BaseSlapRecipe):
...
@@ -1093,5 +1093,29 @@ class Recipe(BaseSlapRecipe):
mysql_backup_cron
=
os
.
path
.
join
(
self
.
cron_d
,
'mysql_backup'
)
mysql_backup_cron
=
os
.
path
.
join
(
self
.
cron_d
,
'mysql_backup'
)
open
(
mysql_backup_cron
,
'w'
).
write
(
'0 0 * * * '
+
backup_controller
)
open
(
mysql_backup_cron
,
'w'
).
write
(
'0 0 * * * '
+
backup_controller
)
self
.
path_list
.
append
(
mysql_backup_cron
)
self
.
path_list
.
append
(
mysql_backup_cron
)
# maatkit installation
for
mk_script_name
in
(
'mk-variable-advisor'
,
'mk-table-usage-binary'
,
'mk-visual-explain'
,
'mk-config-diff'
,
'mk-deadlock-logger'
,
'mk-error-log'
,
'mk-index-usage'
,
'mk-query-advisor'
,
):
mk_argument_list
=
[
self
.
options
[
'perl_binary'
],
self
.
options
[
'%s_binary'
%
mk_script_name
],
'--defaults-file=%s'
%
mysql_conf_path
,
'--socket=%s'
%
mysql_conf
[
'socket'
].
strip
(),
'--user=root'
,
]
environment
=
dict
(
PATH
=
'%s'
%
self
.
bin_directory
)
mk_exe
=
zc
.
buildout
.
easy_install
.
scripts
([(
mk_script_name
,
'slapos.recipe.librecipe.execute'
,
'executee'
)],
self
.
ws
,
sys
.
executable
,
self
.
bin_directory
,
arguments
=
[
mk_argument_list
,
environment
])[
0
]
self
.
path_list
.
append
(
mk_exe
)
# The return could be more explicit database, user ...
# The return could be more explicit database, user ...
return
mysql_conf
return
mysql_conf
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