From 17c4edb58d91e34a6690bb2d0d77f5c4e4a46427 Mon Sep 17 00:00:00 2001 From: jkaberg Date: Tue, 12 Aug 2014 09:24:49 +0200 Subject: [PATCH] add cron job for owncloud --- setup/owncloud.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/setup/owncloud.sh b/setup/owncloud.sh index 5f08373..3bd75c7 100644 --- a/setup/owncloud.sh +++ b/setup/owncloud.sh @@ -1,8 +1,6 @@ # Owncloud ########################## -# TODO: Write documentation on what we're doing here :-) - source setup/functions.sh # load our functions source /etc/mailinabox.conf # load global vars @@ -78,6 +76,10 @@ curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/lib php /usr/local/lib/owncloud/apps/mail/composer.phar install --working-dir=/usr/local/lib/owncloud/apps/mail chmod -R 777 /usr/local/lib/owncloud/apps/mail/vendor/ezyang/htmlpurifier/library/HTMLPurifier/DefinitionCache/Serializer +# Use Crontab instead of AJAX/webcron in ownCloud +# TODO: somehow change the cron option in admin settings, not exposed afaik? +(crontab -u www-user -l; echo "*/15 * * * * php -f /usr/local/lib/owncloud/cron.php" ) | crontab -u www-user - + # TODO: enable mail app in ownCloud config? php5enmod imap