mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2024-11-26 02:57:04 +00:00
add cron job for owncloud
This commit is contained in:
parent
d60abd0f92
commit
17c4edb58d
@ -1,8 +1,6 @@
|
|||||||
# Owncloud
|
# Owncloud
|
||||||
##########################
|
##########################
|
||||||
|
|
||||||
# TODO: Write documentation on what we're doing here :-)
|
|
||||||
|
|
||||||
source setup/functions.sh # load our functions
|
source setup/functions.sh # load our functions
|
||||||
source /etc/mailinabox.conf # load global vars
|
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
|
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
|
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?
|
# TODO: enable mail app in ownCloud config?
|
||||||
|
|
||||||
php5enmod imap
|
php5enmod imap
|
||||||
|
Loading…
Reference in New Issue
Block a user