Skip to content

Commit

Permalink
cron helper
Browse files Browse the repository at this point in the history
  • Loading branch information
cn-kali-team committed Feb 3, 2024
1 parent d166694 commit de1136b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion DockerfileHelper
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ ENV TZ=Asia/Shanghai
RUN apt-get update
RUN apt-get install -y --no-install-recommends libssl-dev default-libmysqlclient-dev ca-certificates
COPY --from=helper /prod/target/release/helper /prod
CMD [ "/prod/helper" ]
ENTRYPOINT [ "/prod/helper" ]
2 changes: 1 addition & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ set -e

# Create directory for log.
mkdir -p /app/var/log
echo "* 2 * * * /prod/helper > /app/var/log/helper.log 2>&1"> /prod/crontab
echo "* 2 * * * /prod/helper cve --api --hours 2 > /app/var/log/helper.log 2>&1"> /prod/crontab
# Load cron configuration.
crontab /prod/crontab
# Start cron as a daemon.
Expand Down

0 comments on commit de1136b

Please sign in to comment.