Skip to content

Commit

Permalink
Check for locks in the configuration repository (#491)
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Berendt <[email protected]>
  • Loading branch information
berendt authored Jun 1, 2024
1 parent dd6d2e7 commit 3f4b5e3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions files/scripts/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,11 @@ if [[ -w $ANSIBLE_INVENTORY ]]; then
rm /ansible/inventory/[0-9]*
fi

if [[ -e $ENVIRONMENTS_DIRECTORY/$SUB/.lock ]]; then
echo "ERROR: The environment $SUB is locked via the configuration repository."
exit 1
fi

cd $ENVIRONMENTS_DIRECTORY/$SUB

export IFS=","
Expand Down

0 comments on commit 3f4b5e3

Please sign in to comment.