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 a936b3e commit a2b6207Copy full SHA for a2b6207
tests/docker/setup_phpipam.sh
@@ -3,6 +3,9 @@
3
exec 10>&1
4
exec > /dev/null 2>&1
5
6
+# split version number into semvar parts
7
+read -r MAJOR MINOR PATCH <<<$(echo ${PHPIPAM_VERSION#v} | tr . " ")
8
+
9
function info() {
10
echo "${@}" >&10
11
}
@@ -17,6 +20,7 @@ fi
17
20
if "${DOCKER_CMD}" ps | grep -q phpipam_test_webserver && ! eval "${MYSQL_PING}" ; then
18
21
19
22
if [[ $(echo "${PHPIPAM_VERSION:-v1.4.4}" | sed -E 's/v[0-9]?.([0-9]?).[0-9]?/\1/g') -ge 7 ]] ; then
23
+ if [[ ${MINOR} -ge 7 ]] ; then
24
info "Running version 1.7.0 or above, patching config"
25
${DOCKER_CMD} exec -t phpipam_test_webserver sh -c 'sed -i "s/api_stringify_results = false/api_stringify_results = true/g" /phpipam/config.dist.php'
26
fi
0 commit comments