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
Tom Niget
slapos
Commits
785919d8
Commit
785919d8
authored
Dec 05, 2019
by
Bryton Lacquement
🚪
Committed by
Julien Muchembled
Feb 17, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dcron: add support for Python 3
parent
c3db3a44
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
component/dcron/buildout.cfg
component/dcron/buildout.cfg
+1
-1
component/dcron/dcron-hooks.py
component/dcron/dcron-hooks.py
+1
-1
No files found.
component/dcron/buildout.cfg
View file @
785919d8
...
@@ -17,7 +17,7 @@ patches =
...
@@ -17,7 +17,7 @@ patches =
patch-options = -p1
patch-options = -p1
make-options =
make-options =
PREFIX=${buildout:parts-directory}/${:_buildout_section_name_}
PREFIX=${buildout:parts-directory}/${:_buildout_section_name_}
post-make-hook = ${:_profile_base_location_}/dcron-hooks.py#
860e914dff4108b47565965fe5ebc7b5
:post_make_hook
post-make-hook = ${:_profile_base_location_}/dcron-hooks.py#
d7985eef1ceef01af00ffb1d38708c8d
:post_make_hook
environment =
environment =
PATH=${patch:location}/bin:%(PATH)s
PATH=${patch:location}/bin:%(PATH)s
randomsleep_install = ${randomsleep:location}
randomsleep_install = ${randomsleep:location}
...
...
component/dcron/dcron-hooks.py
View file @
785919d8
...
@@ -2,4 +2,4 @@ import os
...
@@ -2,4 +2,4 @@ import os
import
shutil
import
shutil
def
post_make_hook
(
options
,
buildout
):
def
post_make_hook
(
options
,
buildout
):
crontab_path
=
os
.
path
.
join
(
options
[
'location'
],
'bin'
,
'crontab'
)
crontab_path
=
os
.
path
.
join
(
options
[
'location'
],
'bin'
,
'crontab'
)
os
.
chmod
(
crontab_path
,
0750
)
os
.
chmod
(
crontab_path
,
0
o
750
)
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