add cron job for owncloud

This commit is contained in:
jkaberg 2014-08-12 09:24:49 +02:00
parent d60abd0f92
commit 17c4edb58d
1 changed files with 4 additions and 2 deletions

View File

@ -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