Skip to content

Commit

Permalink
fixed crond
Browse files Browse the repository at this point in the history
  • Loading branch information
dweinholz committed Feb 21, 2023
1 parent 0bb2e1e commit be17b1e
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions prepare-cron.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,7 @@ if [ "$S3_BACKUP_ENABLED" == "true" ]; then
fi


echo "Cronjob setup done"
chmod +x /etc/cronscripts/*
crontab /etc/crontabs/dockercron/*
service cron start


if [ -f "/install-packages.sh" ]; then
echo "Running install packages"
Expand All @@ -33,5 +30,9 @@ if [ -f "/install-packages.sh" ]; then
echo "Packages installed!"
fi

echo "Starting tail.."
tail -f /var/log/cron.log
chmod +x /etc/cronscripts/*
crontab /etc/crontabs/dockercron/*
echo "Cronjob setup done"

echo "Starting crond and tail"
crond -b -l 6 && tail -f /var/log/cron.log

0 comments on commit be17b1e

Please sign in to comment.