Skip to content

Commit

Permalink
fix: update every 3 hours (#19)
Browse files Browse the repository at this point in the history
* fix: update every 3 hours

* remove idea
  • Loading branch information
fishkerez authored Oct 15, 2023
1 parent d5cfb87 commit 40fb685
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.idea/
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ FROM vuls/go-exploitdb@sha256:4738ca739083d41b89aab11012e283f89645f5cdbb5c021f2f
RUN mkdir /vuls

# Set up a cron job to update the database files every 3 hours
RUN echo "* */3 * * * /update.sh" >> /var/spool/cron/crontabs/root
RUN echo "0 */3 * * * /update.sh" >> /var/spool/cron/crontabs/root

# Make sure the cron job file has proper permissions
RUN chmod 0600 /var/spool/cron/crontabs/root
Expand Down

0 comments on commit 40fb685

Please sign in to comment.