Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@ set -e
export OPTIONS=$OPTIONS

if [[ "$1" == 'now' ]]; then
exec /curl.sh
exec /curl.sh
else
echo "$CRON_SCHEDULE /curl.sh" >> /var/spool/cron/crontabs/root
crond -l 2 -f
echo "$CRON_SCHEDULE /curl.sh" | crontab -u root -

crond -l 2 -f
fi