Skip to content
This repository was archived by the owner on Oct 1, 2020. It is now read-only.

Commit 246a1f7

Browse files
committed
Merge remote-tracking branch 'origin/2.0' into 2.0
2 parents febe1e9 + 3271180 commit 246a1f7

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

scripts/guest/m-clear-cache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ if [[ -d "${MAGENTO_ROOT}/dev" ]]; then
6060
fi
6161
fi
6262

63-
if [[ -f "${MAGENTO_ROOT}/app/etc/config.php" ]]; then
63+
if [[ -f "${MAGENTO_ROOT}/app/etc/env.php" ]]; then
6464

6565
bash configure_debugging
6666

scripts/guest/m-reinstall

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@ status "Removing Magento configuration files (env.php and config.php)"
4646
rm -f "${MAGENTO_ROOT}/app/etc/config.php"
4747
rm -f "${MAGENTO_ROOT}/app/etc/env.php"
4848

49+
status "Restoring stored in git config.php (if applicable)"
50+
git checkout "${MAGENTO_ROOT}/app/etc/config.php" &>/dev/null
51+
4952
bash m-clear-cache
5053
# Cache cleaning takes 5-10 seconds and should be avoided until the end of installation to speed up the process
5154
export SKIP_CACHE_CLEAN=1
@@ -77,7 +80,7 @@ install_cmd="./bin/magento setup:install \
7780
--use-rewrites=1"
7881

7982
# Configure Rabbit MQ
80-
if [[ -d "${MAGENTO_ROOT}/app/code/Magento/MessageQueue" ]] || [[ -d "${MAGENTO_ROOT}/vendor/magento/magento-message-queue" ]]; then
83+
if [[ -d "${MAGENTO_ROOT}/app/code/Magento/MessageQueue" ]] || [[ -d "${MAGENTO_ROOT}/vendor/magento/module-message-queue" ]]; then
8184
install_cmd="${install_cmd} \
8285
--amqp-host=${setupOptions[amqp_host]} \
8386
--amqp-port=${setupOptions[amqp_port]} \

0 commit comments

Comments
 (0)