[Pkg-owncloud-maintainers] Cron job?

Simon Josefsson simon at josefsson.org
Sat Aug 30 20:20:00 UTC 2014

You wrote:

> > I'm not filing a wishlist-bug because I may be overlooking
> > something in the package right now, but if you think this is a real
> > issue I'll submit it.
> What would actually be helpful would be to propose a (config) patch to
> use the crontab by default in order to provide such crontab, and of
> course test it in order to submit a usable bug report.

I looked into it, and while it initially seemed simple to
patch /usr/share/owncloud/settings/admin.php like this

-$tmpl->assign('backgroundjobs_mode', OC_Appconfig::getValue('core','backgroundjobs_mode', 'ajax'));
+$tmpl->assign('backgroundjobs_mode', OC_Appconfig::getValue('core','backgroundjobs_mode', 'cron'));

it seems like the assumption that ajax is the global default (that is
used if no other value is explicitly configured) is encoded in several
other places too, like this in admin.php

$shouldSuggestOverwriteWebroot = $config->getAppValue('core', 'backgroundjobs_mode', 'ajax') === 'cron' &&

and the following in ./lib/private/backgroundjob.php

return OC_Appconfig::getValue( 'core', 'backgroundjobs_mode', 'ajax' );

so it didn't seem trivial to come up with a config patch, and I
wouldn't want to propose something half-baked that wasn't robust.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 490 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-owncloud-maintainers/attachments/20140830/d05a8dad/attachment.sig>

More information about the Pkg-owncloud-maintainers mailing list