Skip to content

Commit

Permalink
emba install flag in .env
Browse files Browse the repository at this point in the history
  • Loading branch information
BenediktMKuehne committed Nov 4, 2024
1 parent 77fc120 commit d6f153f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
10 changes: 6 additions & 4 deletions dev-tools/debug-server-start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,12 @@ if [[ "${WSL}" -eq 1 ]]; then
fi

# check emba
echo -e "${BLUE}""${BOLD}""checking EMBA""${NC}"
if ! (cd ./emba && ./emba -d 1) ; then
echo -e "${RED}""EMBA is not configured correctly""${NC}"
exit 1
if ! grep -q "EMBA_INSTALL=no" ./.env ; then
echo -e "${BLUE}""${BOLD}""checking EMBA""${NC}"
if ! (cd ./emba && ./emba -d 1) ; then
echo -e "${RED}""EMBA is not configured correctly""${NC}"
exit 1
fi
fi

check_db
Expand Down
5 changes: 5 additions & 0 deletions installer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -721,10 +721,15 @@ if [[ "${NO_EMBA}" -eq 0 ]]; then
# use git or release
if [[ "${NO_GIT}" -eq 1 ]]; then
install_emba_src
echo "EMBA_INSTALL=src" >> .env
else
install_emba
echo "EMBA_INSTALL=git" >> .env
fi
fi
if [[ "${NO_EMBA}" -eq 1 ]]; then
echo "EMBA_INSTALL=no" >> .env
fi
if [[ "${EMBA_ONLY}" -eq 1 ]]; then
exit 0
fi
Expand Down

0 comments on commit d6f153f

Please sign in to comment.