Skip to content
Permalink
Browse files

Bugfixes for docker

  • Loading branch information...
kiwiz committed May 18, 2019
1 parent 9fc3a83 commit d113a53ec04d0d277dafae06b48b7bee7b91e19f
Showing with 2 additions and 2 deletions.
  1. +1 −1 data/411_cron
  2. +1 −1 phplib/Job.php
@@ -1,2 +1,2 @@
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
* * * * * root /usr/local/bin/php /var/www/411/bin/cron.php > /dev/null 2>&1 && /usr/local/bin/php /var/www/411/bin/worker.php > /dev/null 2>&1
* * * * * root /usr/local/bin/php /app/bin/cron.php > /dev/null 2>&1 && /usr/local/bin/php /app/bin/worker.php > /dev/null 2>&1
@@ -217,7 +217,7 @@ public static function optimize($date) {
$sql = sprintf('
DELETE FROM `%s` WHERE `site_id` = ? AND `archived` = 0 AND `state` IN (?, ?) AND `update_date` < ?',
Job::$TABLE);
DB::query($sql, [SiteFinder::getCurrentId(), Job::ST_SUCC, Job, ST_CANC, $date - (30 * 24 * 60 * 60)]);
DB::query($sql, [SiteFinder::getCurrentId(), Job::ST_SUCC, Job::ST_CANC, $date - (30 * 24 * 60 * 60)]);
}
}

0 comments on commit d113a53

Please sign in to comment.
You can’t perform that action at this time.