Skip to content

Commit

Permalink
Use cron for background tasks (#43)
Browse files Browse the repository at this point in the history
Add cron job to call Nextcloud's periodic maintenance tasks every 15 minutes

NethServer/dev#5604
  • Loading branch information
danb35 authored and gsanchietti committed Oct 11, 2018
1 parent 25a5b25 commit 8bede2c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions root/etc/cron.d/nextcloud
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*/15 * * * * apache /usr/bin/scl enable rh-php71 -- php -f /usr/share/nextcloud/cron.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ OCC "config:system:set mail_from_address --value=no-reply";
OCC "config:system:set mail_domain --value=".$cdb->get_value('DomainName');
OCC "config:system:set mail_smtphost --value=localhost";
OCC "config:system:set mail_smtpport --value=25";
OCC "background:cron";

my $i = 2;
foreach ($ndb->green(), $ndb->red(), $ndb->orange(), $ndb->blue()) {
Expand Down

0 comments on commit 8bede2c

Please sign in to comment.