Skip to content

Commit

Permalink
Merge pull request #1034 from YevhenZvieriev/feature/failed-install
Browse files Browse the repository at this point in the history
  • Loading branch information
markshust authored Feb 24, 2024
2 parents 190b499 + 51f8bf0 commit d1311f4
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions compose/bin/download
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@
VERSION=${1:-2.4.6-p3}
EDITION=${2:-community}

# Define ANSI escape codes for colors
YELLOW='\033[0;33m'
BLUE='\033[0;34m'
NC='\033[0m' # No Color

bin/stop

bin/start --no-dev
Expand All @@ -24,5 +29,8 @@ else
bin/clinotty composer create-project --repository=https://repo.magento.com/ magento/project-"${EDITION}"-edition="${VERSION}" .
fi

bin/clinotty [ ! -f "./var/composer_home/auth.json" ] && bin/clinotty mkdir -p ./var/composer_home && bin/clinotty cp /var/www/.composer/auth.json ./var/composer_home/auth.json

if [ $? != 0 ]; then
echo -e "${BLUE}Please check the installation guide at ${YELLOW}https://github.com/markshust/docker-magento#install-fails-because-project-directory-is-not-empty${BLUE} for troubleshooting.${NC}"
else
bin/clinotty [ ! -f "./var/composer_home/auth.json" ] && bin/clinotty mkdir -p ./var/composer_home && bin/clinotty cp /var/www/.composer/auth.json ./var/composer_home/auth.json
fi

0 comments on commit d1311f4

Please sign in to comment.