summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorKarel Kočí <karel.koci@nic.cz>2018-10-15 10:21:16 +0200
committerKarel Kočí <karel.koci@nic.cz>2018-10-15 10:21:16 +0200
commitd7d5ba1e6aa10a6cae3ba956a00caecdc1452cbc (patch)
tree5a6451a3fbac0d70ac395da0f780bd62d5d8799d /templates
parentd562390407eec6ecc83a9f19635258fbe83b6695 (diff)
downloadlaminar-cnf-d7d5ba1e6aa10a6cae3ba956a00caecdc1452cbc.tar.gz
laminar-cnf-d7d5ba1e6aa10a6cae3ba956a00caecdc1452cbc.tar.bz2
laminar-cnf-d7d5ba1e6aa10a6cae3ba956a00caecdc1452cbc.zip
alpine: fix locking
Diffstat (limited to 'templates')
-rwxr-xr-xtemplates/alpine.run4
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/alpine.run b/templates/alpine.run
index 0e11b12..a8be860 100755
--- a/templates/alpine.run
+++ b/templates/alpine.run
@@ -4,9 +4,9 @@
# Lock for execution
if [ "$1" != "--locked" ]; then
- flock --exclusive "$WORKSPACE/root.lock" "$0" "$@" --locked
- exit
+ exec flock --exclusive "$WORKSPACE/root.lock" "$0" --locked "$@"
fi
+shift # Shift --locked
if [ -n "$CLEAN_ROOT" ]; then
echo_stage "Remove root"