Skip to content

Commit

Permalink
Fix: create cron for multiple times
Browse files Browse the repository at this point in the history
  • Loading branch information
Kare-Udon committed Feb 16, 2023
1 parent 2ce1ae7 commit b2e0215
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ if [ -f /surgio/package.json ];then
fi

# add cron job
cat /dev/null > /etc/crontabs/root # clear cron job
if [ $AUTOGEN_INTERVAL ];then
hour=$(echo "$AUTOGEN_INTERVAL" | grep -oP '\d+(?=h)')
minute=$(echo "$AUTOGEN_INTERVAL" | grep -oP '\d+(?=m)')
Expand Down

0 comments on commit b2e0215

Please sign in to comment.