mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2024-11-26 02:57:04 +00:00
ownCloud: do cron the same way we do the others
This commit is contained in:
parent
ae1e69a5e3
commit
bbd35f4906
@ -110,9 +110,13 @@ tools/editconf.py /etc/php5/fpm/php.ini -c ';' \
|
|||||||
max_execution_time=600 \
|
max_execution_time=600 \
|
||||||
short_open_tag=On
|
short_open_tag=On
|
||||||
|
|
||||||
# Use Crontab instead of AJAX/webcron in ownCloud
|
# Set up a cron job for owncloud.
|
||||||
# TODO: somehow change the cron option in ownClouds config, not exposed afaik?
|
cat > /etc/cron.hourly/mailinabox-owncloud << EOF;
|
||||||
(crontab -u www-data -l; echo "*/15 * * * * php -f /usr/local/lib/owncloud/cron.php" ) | crontab -u www-data -
|
#!/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.
|
## Ensure all system admins are ownCloud admins.
|
||||||
## Actually we don't do this. There's nothing much of interest that the user could
|
## Actually we don't do this. There's nothing much of interest that the user could
|
||||||
|
Loading…
Reference in New Issue
Block a user