Skip to content

Commit

Permalink
Add a way to define the path to the composer binary
Browse files Browse the repository at this point in the history
  • Loading branch information
cmuench committed Jun 20, 2023
1 parent c0cd59c commit 50bbd63
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .ddev/commands/web/install-magento-ce
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ if [ -x PHP_BIN ]; then
PHP_BIN="php"
fi

if [ ! -x COMPOSER_BIN ]; then
COMPOSER_BIN="/usr/local/bin/composer"
fi

if [ -x $TZ ]; then
TZ="UTC"
fi
Expand Down Expand Up @@ -57,7 +61,7 @@ install_magento() {
check_if_db_exists

if [ ! -d $MAGENTO_ROOT_DIR ]; then
"$PHP_BIN" /usr/local/bin/composer --no-interaction create-project --repository-url=https://repo.magento.com/ magento/project-community-edition="$MAGENTO_VERSION" "$MAGENTO_ROOT_DIR"
"$PHP_BIN" $COMPOSER_BIN --no-interaction create-project --repository-url=https://repo.magento.com/ magento/project-community-edition="$MAGENTO_VERSION" "$MAGENTO_ROOT_DIR"
fi

cd $MAGENTO_ROOT_DIR
Expand Down

0 comments on commit 50bbd63

Please sign in to comment.