Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.package
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
Ivan Tyagov
slapos.package
Commits
56a44154
Commit
56a44154
authored
Jan 16, 2013
by
Cédric de Saint Martin
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'crontab'
parents
98319de0
d700af46
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
slapprepare/slapprepare/script/slapos
slapprepare/slapprepare/script/slapos
+3
-2
No files found.
slapprepare/slapprepare/script/slapos
View file @
56a44154
...
@@ -119,14 +119,15 @@ if [ $SLAPOS_GOOD_CONFIGURATION != $SLAPOS_CONFIGURATION ]; then
...
@@ -119,14 +119,15 @@ if [ $SLAPOS_GOOD_CONFIGURATION != $SLAPOS_CONFIGURATION ]; then
fi
fi
# Set up cron
# Set up cron
let
HOUR
=
$RANDOM
%23
;
let
MINUTE
=
$RANDOM
%60
;
# Remove default route for ipv6 in case of openvpn-needed
echo
"""# BEWARE: This file will be automatically regenerated on each boot
echo
"""# BEWARE: This file will be automatically regenerated on each boot
SHELL=/bin/sh
SHELL=/bin/sh
PATH=/usr/bin:/usr/sbin:/sbin:/bin:/usr/lib/news/bin
PATH=/usr/bin:/usr/sbin:/sbin:/bin:/usr/lib/news/bin
MAILTO=root
MAILTO=root
0 0
* * * root /usr/local/bin/slapupdate -v --slapos-configuration
$SLAPOS_CONFIGURATION
/slapos.cfg >> /opt/slapos/slapupdate.log 2>&1
$MINUTE
$HOUR
* * * root /usr/local/bin/slapupdate -v --slapos-configuration
$SLAPOS_CONFIGURATION
/slapos.cfg >> /opt/slapos/slapupdate.log 2>&1
"""
>
/etc/cron.d/slapos
"""
>
/etc/cron.d/slapos
...
...
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