Skip to content

Commit e0476e3

Browse files
committed
Fall back to PHP 7.4 for Magento versions older than 2.4.4 #685
1 parent 151dc09 commit e0476e3

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

compose/bin/download

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,16 @@ VERSION=${1:-2.4.4}
44
EDITION=${2:-community}
55

66
bin/stop
7+
8+
# Translate versiont to root in integer format. Ex. 2.4.3-p1 -> 243
9+
VERSION_ROOT=$(echo "$VERSION" | cut -b 1-5 | sed -e 's/\.//g')
10+
11+
if (( $(echo "$VERSION_ROOT < 244" | bc -l) )); then
12+
sed -i -e 's/8.1\-fpm\-0/7.4\-fpm\-14/g' docker-compose.yml
13+
else
14+
sed -i -e 's/7.4\-fpm\-14/8.1\-fpm\-0/g' docker-compose.yml
15+
fi
16+
717
docker-compose -f docker-compose.yml up -d
818
[ $? != 0 ] && echo "Failed to start Docker services" && exit
919

0 commit comments

Comments
 (0)