File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change 3
3
exec 10>&1
4
4
exec > /dev/null 2>&1
5
5
6
- # split version number into semvar parts
7
- read -r MAJOR MINOR PATCH <<< $( echo ${PHPIPAM_VERSION# v} | tr . " " )
8
-
9
6
function info() {
10
7
echo " ${@ } " >&10
11
8
}
19
16
20
17
if " ${DOCKER_CMD} " ps | grep -q phpipam_test_webserver && ! eval " ${MYSQL_PING} " ; then
21
18
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
24
20
info " Running version 1.7.0 or above, patching config"
25
21
${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
22
fi
You can’t perform that action at this time.
0 commit comments