We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 151dc09 commit e0476e3Copy full SHA for e0476e3
compose/bin/download
@@ -4,6 +4,16 @@ VERSION=${1:-2.4.4}
4
EDITION=${2:-community}
5
6
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
17
docker-compose -f docker-compose.yml up -d
18
[ $? != 0 ] && echo "Failed to start Docker services" && exit
19
0 commit comments