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: Minor
Rich Turnerf210775c5850
diff --git a/.ci_cd/aws/login.sh b/.ci_cd/aws/login.shindex b5ba732e6..60e44eb35 100644--- a/.ci_cd/aws/login.sh+++ b/.ci_cd/aws/login.sh@@ -31,7 +31,7 @@ AWS_PROFILE=githubexport AWS_PROFILE=$AWS_PROFILEecho "Validating AWS credentials"-aws sts get-caller-identity 1>/dev/null 2>/dev/null+aws sts get-caller-identityif [ $? -ne 0 ]; thenecho "Failed to login to AWS"diff --git a/.ci_cd/deploy.sh b/.ci_cd/deploy.shindex f7f00f5e3..7c5d63798 100644--- a/.ci_cd/deploy.sh+++ b/.ci_cd/deploy.sh@@ -229,12 +229,15 @@ if [ \$? -ne 0 ]; thenfi# Attempt docker compose down-echo "Stopping existing stack"-docker-compose -f temp/docker-compose.yml -p or down 2> /dev/null+CONTAINER_IDS=$(docker ps -q)+if [ -n "$CONTAINER_IDS" ]; then+ echo "Stopping existing stack"+ docker-compose -f temp/docker-compose.yml -p or down 2> /dev/null-if [ \$? -ne 0 ]; then- echo "Deployment failed to stop the existing stack"- exit 1+ if [ \$? -ne 0 ]; then+ echo "Deployment failed to stop the existing stack"+ exit 1+ fifi# Run host init