Skip to content

Commit

Permalink
feat(cron): reduce frequency of cron task to check for new games (eve…
Browse files Browse the repository at this point in the history
…ry minutes) + remove logs for this task
  • Loading branch information
Marcel Marquez committed Mar 29, 2021
1 parent 70f9765 commit 577bd57
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,13 @@

# add custom id and password to secure nut-server
echo "\n$ID|$PASSWORD" >> /root/nut.src.latest/conf/users.conf
echo "* * * * * wget --spider --user $ID --password $PASSWORD http://127.0.0.1:9000/api/scan >> /var/log/cron.log\n" > /etc/cron.d/scraping-nut

#add crontask for regularly check for new games on /games folder
echo "0-59 * * * * wget --spider --user $ID --password $PASSWORD http://127.0.0.1:9000/api/scan" > /etc/cron.d/scraping-nut
chmod 0644 /etc/cron.d/scraping-nut && crontab /etc/cron.d/scraping-nut

#cron -f &
service cron start

python3 /root/nut.src.latest/nut.py -S >> /var/log/nut.log

0 comments on commit 577bd57

Please sign in to comment.