Skip to content

Commit

Permalink
Update CPE browsing cache after DB update
Browse files Browse the repository at this point in the history
  • Loading branch information
lounagen committed Jul 14, 2020
1 parent cffcb9d commit 138e441
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion auto-update.cron
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# Update CVE DB every 2 hours, at 33 minutes
33 */2 * * * /opt/cve/sbin/db_updater.py -v >> /opt/cve/log/auto-update.log 2>&1
33 */2 * * * (/bin/date ; echo "Auto-updating DB" ; /opt/cve/sbin/db_updater.py -v ; /bin/date ; echo "Auto-updating CPE browsing cache" ; /opt/cve/sbin/db_cpe_browser.py ; /bin/date) >> /opt/cve/log/auto-update.log 2>&1
6 changes: 2 additions & 4 deletions docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,8 @@ function update_database {
}

function update_database_background {
log "Updating database in background"
./sbin/db_updater.py -v &
log "Updating CPE browsing cache in background"
./sbin/db_cpe_browser.py &
log "Updating database and CPE browsing cache in background"
(./sbin/db_updater.py -v ; ./sbin/db_cpe_browser.py) &
}

function repopulate_database {
Expand Down

0 comments on commit 138e441

Please sign in to comment.