summaryrefslogtreecommitdiffstats
path: root/adei/scripts/adei-branch.sh
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2018-02-22 16:22:17 +0100
committerSuren A. Chilingaryan <csa@suren.me>2018-02-22 16:22:17 +0100
commit733b1e4c50e5943de559778330061ed803070e1c (patch)
treeda5bb6163b7a1b6e967616bba241fbb3b7c8e861 /adei/scripts/adei-branch.sh
parent521d7e938779e7d3a94aefa35c6e429aed1c3946 (diff)
downloadadei-733b1e4c50e5943de559778330061ed803070e1c.tar.gz
adei-733b1e4c50e5943de559778330061ed803070e1c.tar.bz2
adei-733b1e4c50e5943de559778330061ed803070e1c.tar.xz
adei-733b1e4c50e5943de559778330061ed803070e1c.zip
Support more parameters from environment
Diffstat (limited to 'adei/scripts/adei-branch.sh')
-rwxr-xr-xadei/scripts/adei-branch.sh10
1 files changed, 9 insertions, 1 deletions
diff --git a/adei/scripts/adei-branch.sh b/adei/scripts/adei-branch.sh
index 5f14c01..f22cad3 100755
--- a/adei/scripts/adei-branch.sh
+++ b/adei/scripts/adei-branch.sh
@@ -10,7 +10,15 @@ if [ ! -d /adei/src -o ! -d /adei/tmp -o ! -d /adei/sys -o ! -d /adei/cfg ]; th
exit 1
fi
-LOCK_FILE=.lock
+#LOCK_FILE=.lock
+#(
+# flock -x 10
+# if [ ! -f /adei/sys/adei.cron.sh ]; then
+# cp -a /opt/configs/*.cron.sh /adei/sys
+# fi
+#) 10> /adei/sys/$LOCK_FILE
+
+
(
flock -x 10
flock -x 11