From 28879b78ddff075daf9d28f6389ecab9909c1de8 Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Thu, 22 Feb 2018 00:51:18 +0100 Subject: Move locking protection from run-cron to adei-branch --- adei/scripts/run-cron.sh | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'adei/scripts/run-cron.sh') diff --git a/adei/scripts/run-cron.sh b/adei/scripts/run-cron.sh index f0539f6..5f4b9e2 100755 --- a/adei/scripts/run-cron.sh +++ b/adei/scripts/run-cron.sh @@ -2,14 +2,6 @@ printenv | grep -v affinity:container | sed -r 's/^(.*)=("?)(.*)\2$/export \1="\3"/g' > /adei/env -LOCK_FILE=.lock -( - flock -x 10 - flock -x 11 - - /opt/scripts/adei-branch.sh - -) 10> /adei/cfg/$LOCK_FILE 11> /adei/src/$LOCK_FILE - +/opt/scripts/adei-branch.sh cron -n -m '/usr/bin/procmail -d root' -- cgit v1.2.3