Fix the aaicron job to make sure resources is up
[aai/test-config.git] / aaicron.sh
index f977ebf..80b70fe 100644 (file)
@@ -2,6 +2,6 @@
 
 RESOURCES_COUNT=$(docker ps | grep 'testconfig_aai-resources.api.simpledemo.openecomp.org_1' | wc -l);
 
-if [ ${RESOURCES_COUNT} -eq 0 ]; then
+if [ ${RESOURCES_COUNT} -eq 1 ]; then
        docker exec -u aaiadmin testconfig_aai-resources.api.simpledemo.openecomp.org_1 /opt/app/aai-resources/bin/dataSnapshot.sh >> /var/log/aaicron.log 2>&1 
 fi;