Skip to content

Commit 1f7aecb

Browse files
committed
Updated readme with workaround for phpIPAM v1.7 and above
1 parent a2b6207 commit 1f7aecb

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

tests/docker/setup_phpipam.sh

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33
exec 10>&1
44
exec > /dev/null 2>&1
55

6-
# split version number into semvar parts
7-
read -r MAJOR MINOR PATCH <<<$(echo ${PHPIPAM_VERSION#v} | tr . " ")
8-
96
function info() {
107
echo "${@}" >&10
118
}
@@ -19,8 +16,7 @@ fi
1916

2017
if "${DOCKER_CMD}" ps | grep -q phpipam_test_webserver && ! eval "${MYSQL_PING}" ; then
2118

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
19+
if [[ $(echo ${PHPIPAM_VERSION:-v1.4.4} | sed -E 's/v[0-9]?.([0-9]?).[0-9]?/\1/g') -ge 7 ]] ; then
2420
info "Running version 1.7.0 or above, patching config"
2521
${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'
2622
fi

0 commit comments

Comments
 (0)