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
Kirill Smelkov
slapos.package
Commits
1d9fcf1c
Commit
1d9fcf1c
authored
Dec 27, 2012
by
Jean-Baptiste Petre
Committed by
Cédric de Saint Martin
Jan 16, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add random crontab etc/cron.d/slapos slapupdate
parent
5c4f0fe6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
slapprepare/slapprepare/script/slapos
slapprepare/slapprepare/script/slapos
+3
-1
No files found.
slapprepare/slapprepare/script/slapos
View file @
1d9fcf1c
...
@@ -119,6 +119,8 @@ if [ $SLAPOS_GOOD_CONFIGURATION != $SLAPOS_CONFIGURATION ]; then
...
@@ -119,6 +119,8 @@ 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
# 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
...
@@ -126,7 +128,7 @@ SHELL=/bin/sh
...
@@ -126,7 +128,7 @@ 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