Skip to content

Commit 34d3f5f

Browse files
authored
Merge pull request #608 from geoadmin/fix_cron_start
make sure that the cron service is running. a under certain circumsta…
2 parents ba1ca00 + 309a63f commit 34d3f5f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

scripts/checker.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ MAX_AGE=300 # max age in seconds should be the same interval as the cron setting
1717
# check if index sync status file exists
1818
if [[ ! -f "${LAST_SYNC}" ]]; then
1919
echo "index sync status file does not exist ${LAST_SYNC}"
20+
# reload cron / restart in case it has not been activated correctly during initial container start
21+
envsubst < docker-crontab | crontab
2022
exit 1
2123
fi
2224

0 commit comments

Comments
 (0)