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
Francois Le Corre
slapos.package
Commits
4cbab1f6
Commit
4cbab1f6
authored
Oct 17, 2012
by
Cédric Le Ninivin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Debian cron file is now obtain from slapos-node one with prepare script
Doc updated for cron file
parent
5b2c3dad
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
15 deletions
+10
-15
README
README
+8
-1
prepare_slapos_build.sh
prepare_slapos_build.sh
+2
-1
templates/debian/cron.d
templates/debian/cron.d
+0
-13
No files found.
README
View file @
4cbab1f6
...
...
@@ -70,3 +70,10 @@ It then fetch packaging configuration from templates directory. Everything is th
So to build package just run:
# bash prepare_slapos_build.sh
About cron file
---------------
Main cron file is situated in slapos-node/template/slapos-node.cron.d
Prepare script will copy this one in the debian directory.
WARNING: if you update cron, do not forget to update slaptest which check cron file
\ No newline at end of file
prepare_slapos_build.sh
View file @
4cbab1f6
...
...
@@ -51,7 +51,8 @@ osc add slapos.spec
# Add entry to changelog
cd
$TEMPLATES_DIRECTORY
/debian
dch
-pm
-v
$VERSION
+
$RECIPE_VERSION
+0
--check-dirname-level
=
0
"New version of slapos (
$VERSION
+
$RECIPE_VERSION
)"
# Add cronfile
cp
$CURRENT_DIRECTORY
/
$SLAPOS_ORGINAL_DIRECTORY
/template/slapos-node.cron.d
$TEMPLATES_DIRECTORY
/debian/cron.d
cd
$TEMPLATES_DIRECTORY
tar
-czf
debian.tar.gz debian
cd
$OBS_DIRECTORY
...
...
templates/debian/cron.d
deleted
100644 → 0
View file @
5b2c3dad
SHELL
=/
bin
/
sh
PATH
=/
usr
/
bin
:/
usr
/
sbin
:/
sbin
:/
bin
MAILTO
=
root
*/
5
*
*
*
*
root
/
opt
/
slapos
/
bin
/
slapgrid
-
sr
--
verbose
--
logfile
=/
opt
/
slapos
/
slapgrid
-
sr
.
log
--
pidfile
=/
opt
/
slapos
/
slapgrid
-
sr
.
pid
/
etc
/
opt
/
slapos
/
slapos
.
cfg
>>
/
opt
/
slapos
/
slapgrid
-
sr
.
log
2
>&
1
*/
5
*
*
*
*
root
/
opt
/
slapos
/
bin
/
slapgrid
-
cp
--
verbose
--
logfile
=/
opt
/
slapos
/
slapgrid
-
cp
.
log
--
pidfile
=/
opt
/
slapos
/
slapgrid
-
cp
.
pid
/
etc
/
opt
/
slapos
/
slapos
.
cfg
>>
/
opt
/
slapos
/
slapgrid
-
cp
.
log
2
>&
1
#
slapgrid
-
ur
:
hardcoded
script
to
rerun
slapgrid
-
ur
if
failed
.
0
0
*
*
*
root
/
opt
/
slapos
/
bin
/
slapgrid
-
ur
--
maximal_delay
=
86400
--
verbose
--
logfile
=/
opt
/
slapos
/
slapgrid
-
ur
.
log
--
pidfile
=/
opt
/
slapos
/
slapgrid
-
ur
.
pid
/
etc
/
opt
/
slapos
/
slapos
.
cfg
;
i
=
20
;
while
[
$?
!=
0
];
do
/
opt
/
slapos
/
bin
/
slapgrid
-
ur
--
verbose
--
logfile
=/
opt
/
slapos
/
slapgrid
-
ur
.
log
--
pidfile
=/
opt
/
slapos
/
slapgrid
-
ur
.
pid
/
etc
/
opt
/
slapos
/
slapos
.
cfg
>>
/
opt
/
slapos
/
slapgrid
-
ur
.
log
2
>&
1
;
sleep
$(($
i
*
60
));
if
[
$
i
<
20
];
then
let
i
++;
fi
;
done
;
0
0
*
*
*
root
/
opt
/
slapos
/
bin
/
slapformat
--
verbose
--
log_file
=/
opt
/
slapos
/
slapformat
.
log
-
c
/
etc
/
opt
/
slapos
/
slapos
.
cfg
>>
/
opt
/
slapos
/
slapformat
.
log
2
>&
1
0
/
10
*
*
*
*
root
if
[
-
f
/
etc
/
opt
/
slapos
/
openvpn
-
needed
];
then
ifconfig
tapVPN
|
grep
"Scope:Global"
>
/
dev
/
null
;
if
[
$?
=
0
];
then
ROUTES
=$(
ip
-
6
r
l
|
grep
default
|
awk
'
{
print
$
5
}
'
);
for
GW
in
$
ROUTES
;
do
if
[
!
$
GW
=
tapVPN
];
then
/
sbin
/
ip
-
6
route
del
default
dev
$
GW
;
fi
;
done
;
fi
;
fi
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