Skip to content

Commit

Permalink
[ansible/venv] Fix potential wrapper race condition
Browse files Browse the repository at this point in the history
  • Loading branch information
goldyfruit committed Oct 31, 2024
1 parent f3a140b commit 4f469e6
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ while ! [ -d "$combo_locks_path" ]; do
((attempt_counter++))
echo "Trying to start ovos-phal-admin systemd unit... Attempt ${attempt_counter}/${max_attempt}"
sleep 1
else
# If for some reasons /tmp/combo_locks is not created by the other
# services then we force the directory creation with the
# correct permissions to avoid a potential race condition.
mkdir -p "$combo_locks_path"
chown -R {{ ovos_installer_user }}:{{ ovos_installer_group }} "$combo_locks_path"
fi
done

Expand Down

0 comments on commit 4f469e6

Please sign in to comment.