Skip to content

Commit

Permalink
change crontab timing
Browse files Browse the repository at this point in the history
  • Loading branch information
Petter Andersson committed Aug 23, 2024
1 parent 4a1ede7 commit a521966
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docker-cmd-with-crond.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ else
echo "crond already running"
fi
# Update crontab
crontab -l | grep -v "daily.sh" | { cat; echo "0 23 * * * /usr/src/app/data/jobs/daily.sh>/tmp/daily.log"; } | crontab -
crontab -l | grep -v "daily.sh" | { cat; echo "0 06 * * * /usr/src/app/data/jobs/daily.sh>/tmp/daily.log"; } | crontab -

# Run application
node ./index.js

0 comments on commit a521966

Please sign in to comment.