File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -120,8 +120,9 @@ for compose in ${COMPOSE_FILE}; do
120120
121121 # Multiple Instance of device-modbus
122122 sed -n " /^\ \ device-modbus:/,/^ [a-z].*:$/p" ${compose} .yml | sed ' $d' > tmp/device-modbus_1.yml
123+ VERSION_NUM=$( grep image tmp/device-modbus_1.yml| cut -d ' :' -f3)
123124 sed -i ' s/device-modbus/device-modbus_1/g' tmp/device-modbus_1.yml
124- sed -i " s/device-modbus_1${USE_ARM64} :3.1.0 /device-modbus${USE_ARM64} :3.1.0 /g" tmp/device-modbus_1.yml
125+ sed -i " s/device-modbus_1${USE_ARM64} :${VERSION_NUM} /device-modbus${USE_ARM64} :${VERSION_NUM} /g" tmp/device-modbus_1.yml
125126 if [ " ${USE_SECURITY} " = ' -security-' ]; then
126127 sed -i ' s/- \/device-modbus_1/- \/device-modbus/g' tmp/device-modbus_1.yml
127128 fi
You can’t perform that action at this time.
0 commit comments