From bbd35f49067f4e477600bbefbc63720a3df30bdc Mon Sep 17 00:00:00 2001 From: Joshua Tauberer Date: Sat, 16 Aug 2014 13:00:36 +0000 Subject: [PATCH] ownCloud: do cron the same way we do the others --- setup/owncloud.sh | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/setup/owncloud.sh b/setup/owncloud.sh index 07085dd..7b63034 100755 --- a/setup/owncloud.sh +++ b/setup/owncloud.sh @@ -110,9 +110,13 @@ tools/editconf.py /etc/php5/fpm/php.ini -c ';' \ max_execution_time=600 \ short_open_tag=On -# Use Crontab instead of AJAX/webcron in ownCloud -# TODO: somehow change the cron option in ownClouds config, not exposed afaik? -(crontab -u www-data -l; echo "*/15 * * * * php -f /usr/local/lib/owncloud/cron.php" ) | crontab -u www-data - +# Set up a cron job for owncloud. +cat > /etc/cron.hourly/mailinabox-owncloud << EOF; +#!/bin/bash +# Mail-in-a-Box +sudo -u www-data php -f /usr/local/lib/owncloud/cron.php +EOF +chmod +x /etc/cron.hourly/mailinabox-owncloud ## Ensure all system admins are ownCloud admins. ## Actually we don't do this. There's nothing much of interest that the user could