100% open-source IoT Platform - Integrate your devices, add intelligence, build custom apps
Java asset-managementbuildingdashboarddataplatformdevice-managementedge-computingenergyenergy-managementenergy-monitorfleet-managementfleet-telematicsiotiot-applicationiot-platformmodbusmqttmqtt-brokerota-updaterules-enginesmartcity
CI/CD deploy.sh variable escaping bug fixes
Rich Turnerb413de1250b2
diff --git a/.ci_cd/deploy.sh b/.ci_cd/deploy.shindex d93f2b2a1..c4817d20a 100644--- a/.ci_cd/deploy.sh+++ b/.ci_cd/deploy.sh@@ -298,7 +298,7 @@ IFS=\$'\n'while [ "\$STATUSES_OK" != 'true' ] && [ \$COUNT -le 60 ]; doecho "Checking service health...attempt \$COUNT"- STATUSES=$(docker ps --format "{{.Names}} {{.Status}}")+ STATUSES=\$(docker ps --format "{{.Names}} {{.Status}}")STATUSES_OK=truefor STATUS in \$STATUSES; do@@ -338,11 +338,12 @@ elsefi# Store deployment snapshot data if the host can access S3 bucket with the same name as the host-docker image inspect $(docker image ls -aq) > temp/image-info.txt-docker inspect $(docker ps -aq) > temp/container-info.txt+docker image inspect \$(docker image ls -aq) > temp/image-info.txt+docker inspect \$(docker ps -aq) > temp/container-info.txtaws s3 cp temp/image-info.txt s3://${OR_HOST}/image-info.txt &>/dev/nullaws s3 cp temp/container-info.txt s3://${OR_HOST}/container-info.txt &>/dev/null+exit 0EOFif [ $? -ne 0 ]; then@@ -432,7 +433,7 @@ IFS=\$'\n'while [ "\$STATUSES_OK" != 'true' ] && [ \$COUNT -le 60 ]; doecho "Checking service health...attempt \$COUNT"- STATUSES=$(docker ps --format "{{.Names}} {{.Status}}")+ STATUSES=\$(docker ps --format "{{.Names}} {{.Status}}")STATUSES_OK=truefor STATUS in \$STATUSES; do@@ -474,8 +475,6 @@ fiEOFfi--echo "Testing manager web server https://$OR_HOST..."response=$(curl --output /dev/null --silent --head --write-out "%{http_code}" https://$OR_HOST/manager/)if [ $response -ne 200 ]; then