git://git.onelab.eu
/
vserver-reference.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
no more unversioned obsolete
[vserver-reference.git]
/
lxc-sliceimage.spec
diff --git
a/lxc-sliceimage.spec
b/lxc-sliceimage.spec
index
1bd6ff0
..
d7af545
100644
(file)
--- a/
lxc-sliceimage.spec
+++ b/
lxc-sliceimage.spec
@@
-1,6
+1,6
@@
%define name lxc-sliceimage
%define version 5.1
%define name lxc-sliceimage
%define version 5.1
-%define taglevel 1
0
+%define taglevel 1
2
%define release %{taglevel}%{?pldistro:.%{pldistro}}%{?date:.%{date}}
%define release %{taglevel}%{?pldistro:.%{pldistro}}%{?date:.%{date}}
@@
-59,8
+59,8
@@
if [ "$PL_BOOTCD" != "1" ] ; then
systemctl restart lxc-sliceimage.service
fi
systemctl restart lxc-sliceimage.service
fi
-# Randomize daily run time
+# Randomize hourly run time (used to be daily)
+#H=$((24 * $RANDOM / 32768))
+#sed -i -e "s/@M@/$M/" -e "s/@H@/$H/" %{_sysconfdir}/cron.d/lxc-sliceimage
M=$((60 * $RANDOM / 32768))
M=$((60 * $RANDOM / 32768))
-H=$((24 * $RANDOM / 32768))
-sed -i -e "s/@M@/$M/" -e "s/@H@/$H/" %{_sysconfdir}/cron.d/lxc-sliceimage
-
+sed -i -e "s/@M@/$M/" %{_sysconfdir}/cron.d/lxc-sliceimage