diff --git a/images/commons/lagoon/cronjob.sh b/images/commons/lagoon/cronjob.sh index a92c6cc76..b9faba0c6 100755 --- a/images/commons/lagoon/cronjob.sh +++ b/images/commons/lagoon/cronjob.sh @@ -11,4 +11,4 @@ trap exit_trap EXIT echo "$(date --utc +%FT%TZ) CRONJOB: $@" -/lagoon/entrypoints.sh sh -c "$@" +/lagoon/entrypoints.sh flock -n "/tmp/cron.lock.$(echo "$@" | sha256sum | awk '{ print $1 }')" sh -c "$@"