X-Git-Url: http://git.onelab.eu/?p=vserver-reference.git;a=blobdiff_plain;f=lxc-sliceimage.spec;h=d7af545d839e9aa413991d083857532d044f8400;hp=1bd6ff071d93fb27dedab1c13c1f9050004ba678;hb=HEAD;hpb=edf7cae57e72c28ecb0df203a3a5514ab6d78e3e diff --git a/lxc-sliceimage.spec b/lxc-sliceimage.spec index 1bd6ff0..d7af545 100644 --- a/lxc-sliceimage.spec +++ b/lxc-sliceimage.spec @@ -1,6 +1,6 @@ %define name lxc-sliceimage %define version 5.1 -%define taglevel 10 +%define taglevel 12 %define release %{taglevel}%{?pldistro:.%{pldistro}}%{?date:.%{date}} @@ -59,8 +59,8 @@ if [ "$PL_BOOTCD" != "1" ] ; then 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)) -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