|
@@ -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
|
|
@@ -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
|