Skip to content

Commit ae8adbf

Browse files
Merge pull request #164 from magento-cloud/MAGECLOUD-5486
MAGECLOUD-5486: Magento 2.1 issues in magento-cloud-docker
2 parents c0d2290 + 08ca8d0 commit ae8adbf

File tree

8 files changed

+8
-8
lines changed

8 files changed

+8
-8
lines changed

images/php/7.1-cli/bin/cloud-deploy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ run-hooks deploy
1010

1111
# check that Varnish exists
1212
if ( varnish=$(curl -I varnish 2>&1 | grep -i "magento2") ); then
13-
minor_magento_version=$(magento-command --version | sed "s/Magento CLI \([0-9]*\.[0-9]*\).*/\1/")
13+
minor_magento_version=$(magento-command --version | sed "s/Magento CLI version \([0-9]*\.[0-9]*\).*/\1/")
1414
if [[ "$minor_magento_version" != "2.1" ]]; then
1515
output=$(magento-command config:set system/full_page_cache/caching_application 2)
1616
# as config:set does not return error code, we check output text to continue set varnish settings

images/php/7.1-cli/bin/magento-command

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33
[ "$DEBUG" = "true" ] && set -x
44

5-
MAGENTO_COMMAND="$MAGENTO_ROOT/bin/magento"
5+
MAGENTO_COMMAND="php $MAGENTO_ROOT/bin/magento"
66

77
exec $MAGENTO_COMMAND "$@"

images/php/7.2-cli/bin/cloud-deploy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ run-hooks deploy
1010

1111
# check that Varnish exists
1212
if ( varnish=$(curl -I varnish 2>&1 | grep -i "magento2") ); then
13-
minor_magento_version=$(magento-command --version | sed "s/Magento CLI \([0-9]*\.[0-9]*\).*/\1/")
13+
minor_magento_version=$(magento-command --version | sed "s/Magento CLI version \([0-9]*\.[0-9]*\).*/\1/")
1414
if [[ "$minor_magento_version" != "2.1" ]]; then
1515
output=$(magento-command config:set system/full_page_cache/caching_application 2)
1616
# as config:set does not return error code, we check output text to continue set varnish settings

images/php/7.2-cli/bin/magento-command

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33
[ "$DEBUG" = "true" ] && set -x
44

5-
MAGENTO_COMMAND="$MAGENTO_ROOT/bin/magento"
5+
MAGENTO_COMMAND="php $MAGENTO_ROOT/bin/magento"
66

77
exec $MAGENTO_COMMAND "$@"

images/php/7.3-cli/bin/cloud-deploy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ run-hooks deploy
1010

1111
# check that Varnish exists
1212
if ( varnish=$(curl -I varnish 2>&1 | grep -i "magento2") ); then
13-
minor_magento_version=$(magento-command --version | sed "s/Magento CLI \([0-9]*\.[0-9]*\).*/\1/")
13+
minor_magento_version=$(magento-command --version | sed "s/Magento CLI version \([0-9]*\.[0-9]*\).*/\1/")
1414
if [[ "$minor_magento_version" != "2.1" ]]; then
1515
output=$(magento-command config:set system/full_page_cache/caching_application 2)
1616
# as config:set does not return error code, we check output text to continue set varnish settings

images/php/7.3-cli/bin/magento-command

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33
[ "$DEBUG" = "true" ] && set -x
44

5-
MAGENTO_COMMAND="$MAGENTO_ROOT/bin/magento"
5+
MAGENTO_COMMAND="php $MAGENTO_ROOT/bin/magento"
66

77
exec $MAGENTO_COMMAND "$@"

images/php/cli/bin/cloud-deploy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ run-hooks deploy
1010

1111
# check that Varnish exists
1212
if ( varnish=$(curl -I varnish 2>&1 | grep -i "magento2") ); then
13-
minor_magento_version=$(magento-command --version | sed "s/Magento CLI \([0-9]*\.[0-9]*\).*/\1/")
13+
minor_magento_version=$(magento-command --version | sed "s/Magento CLI version \([0-9]*\.[0-9]*\).*/\1/")
1414
if [[ "$minor_magento_version" != "2.1" ]]; then
1515
output=$(magento-command config:set system/full_page_cache/caching_application 2)
1616
# as config:set does not return error code, we check output text to continue set varnish settings

images/php/cli/bin/magento-command

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33
[ "$DEBUG" = "true" ] && set -x
44

5-
MAGENTO_COMMAND="$MAGENTO_ROOT/bin/magento"
5+
MAGENTO_COMMAND="php $MAGENTO_ROOT/bin/magento"
66

77
exec $MAGENTO_COMMAND "$@"

0 commit comments

Comments
 (0)