Skip to content

Commit

Permalink
[utils/common] Check only for ovos_core and ovos_messagebus instead o…
Browse files Browse the repository at this point in the history
…f all ovos containers
  • Loading branch information
goldyfruit committed Jan 15, 2025
1 parent b577f4d commit 5d2b161
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions utils/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -147,10 +147,10 @@ function detect_cpu_instructions() {
# the Python virtual environement.
function detect_existing_instance() {
echo -ne "➤ Checking for existing instance... "
if [ -n "$(docker ps -a --filter="name=ovos*|hivemind*" -q 2>>"$LOG_FILE")" ]; then
if [ -n "$(docker ps -a --filter="name=ovos_core|ovos_messagebus|hivemind*" -q 2>>"$LOG_FILE")" ]; then
export EXISTING_INSTANCE="true"
export INSTANCE_TYPE="containers"
elif [ -n "$(podman ps -a --filter="name=ovos*|hivemind*" -q 2>>"$LOG_FILE")" ]; then
elif [ -n "$(podman ps -a --filter="name=ovos_core|ovos_messagebus|hivemind*" -q 2>>"$LOG_FILE")" ]; then
export EXISTING_INSTANCE="true"
export INSTANCE_TYPE="containers"
elif [ -d "${RUN_AS_HOME}/.venvs/ovos" ]; then
Expand Down

0 comments on commit 5d2b161

Please sign in to comment.