summaryrefslogtreecommitdiffstats
path: root/adei/scripts/run-cron.sh
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2018-02-22 00:51:18 +0100
committerSuren A. Chilingaryan <csa@suren.me>2018-02-22 00:51:18 +0100
commit28879b78ddff075daf9d28f6389ecab9909c1de8 (patch)
tree4817e399b31e425248831bf665b478ce75ea63ea /adei/scripts/run-cron.sh
parentdfe9895825ffbab23d9e8925b28282206d6678f8 (diff)
downloadadei-28879b78ddff075daf9d28f6389ecab9909c1de8.tar.gz
adei-28879b78ddff075daf9d28f6389ecab9909c1de8.tar.bz2
adei-28879b78ddff075daf9d28f6389ecab9909c1de8.tar.xz
adei-28879b78ddff075daf9d28f6389ecab9909c1de8.zip
Move locking protection from run-cron to adei-branch
Diffstat (limited to 'adei/scripts/run-cron.sh')
-rwxr-xr-xadei/scripts/run-cron.sh10
1 files changed, 1 insertions, 9 deletions
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'