X-Git-Url: http://git.onelab.eu/?p=sliceimage.git;a=blobdiff_plain;f=vserver-sliceimage.spec;fp=vserver-sliceimage.spec;h=5df225b405fc52fdfab23d63f14f31348d90a967;hp=7ad003ba47edc0d10e664af5b5326135651dba0c;hb=89fcad254031d81bf7e2428819dc4fda6d9a3a8c;hpb=edf7cae57e72c28ecb0df203a3a5514ab6d78e3e diff --git a/vserver-sliceimage.spec b/vserver-sliceimage.spec index 7ad003b..5df225b 100644 --- a/vserver-sliceimage.spec +++ b/vserver-sliceimage.spec @@ -48,7 +48,9 @@ rm -rf $RPM_BUILD_ROOT %post chkconfig --add vserver-sliceimage chkconfig vserver-sliceimage on -# 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/vserver-sliceimage +sed -i -e "s/@M@/$M/" %{_sysconfdir}/cron.d/lxc-sliceimage