File tree Expand file tree Collapse file tree 8 files changed +8
-8
lines changed Expand file tree Collapse file tree 8 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ run-hooks deploy
10
10
11
11
# check that Varnish exists
12
12
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/" )
14
14
if [[ " $minor_magento_version " != " 2.1" ]]; then
15
15
output=$( magento-command config:set system/full_page_cache/caching_application 2)
16
16
# as config:set does not return error code, we check output text to continue set varnish settings
Original file line number Diff line number Diff line change 2
2
3
3
[ " $DEBUG " = " true" ] && set -x
4
4
5
- MAGENTO_COMMAND=" $MAGENTO_ROOT /bin/magento"
5
+ MAGENTO_COMMAND=" php $MAGENTO_ROOT /bin/magento"
6
6
7
7
exec $MAGENTO_COMMAND " $@ "
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ run-hooks deploy
10
10
11
11
# check that Varnish exists
12
12
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/" )
14
14
if [[ " $minor_magento_version " != " 2.1" ]]; then
15
15
output=$( magento-command config:set system/full_page_cache/caching_application 2)
16
16
# as config:set does not return error code, we check output text to continue set varnish settings
Original file line number Diff line number Diff line change 2
2
3
3
[ " $DEBUG " = " true" ] && set -x
4
4
5
- MAGENTO_COMMAND=" $MAGENTO_ROOT /bin/magento"
5
+ MAGENTO_COMMAND=" php $MAGENTO_ROOT /bin/magento"
6
6
7
7
exec $MAGENTO_COMMAND " $@ "
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ run-hooks deploy
10
10
11
11
# check that Varnish exists
12
12
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/" )
14
14
if [[ " $minor_magento_version " != " 2.1" ]]; then
15
15
output=$( magento-command config:set system/full_page_cache/caching_application 2)
16
16
# as config:set does not return error code, we check output text to continue set varnish settings
Original file line number Diff line number Diff line change 2
2
3
3
[ " $DEBUG " = " true" ] && set -x
4
4
5
- MAGENTO_COMMAND=" $MAGENTO_ROOT /bin/magento"
5
+ MAGENTO_COMMAND=" php $MAGENTO_ROOT /bin/magento"
6
6
7
7
exec $MAGENTO_COMMAND " $@ "
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ run-hooks deploy
10
10
11
11
# check that Varnish exists
12
12
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/" )
14
14
if [[ " $minor_magento_version " != " 2.1" ]]; then
15
15
output=$( magento-command config:set system/full_page_cache/caching_application 2)
16
16
# as config:set does not return error code, we check output text to continue set varnish settings
Original file line number Diff line number Diff line change 2
2
3
3
[ " $DEBUG " = " true" ] && set -x
4
4
5
- MAGENTO_COMMAND=" $MAGENTO_ROOT /bin/magento"
5
+ MAGENTO_COMMAND=" php $MAGENTO_ROOT /bin/magento"
6
6
7
7
exec $MAGENTO_COMMAND " $@ "
You can’t perform that action at this time.
0 commit comments