summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVenkata Harish K Kajur <vk250x@att.com>2017-11-02 15:43:17 -0400
committerVenkata Harish K Kajur <vk250x@att.com>2017-11-02 15:43:52 -0400
commit9c56108ad5b0ae3a78143443914a0b7da1aa810d (patch)
treec7cc2c0ff1584a1f5bd0d6614b9d9898644f8f88
parentf7dc0ae9ea1818c4285f454a35a323310a72a6bc (diff)
Fix the aaicron job to make sure resources is up
Issue-ID: AAI-447 Change-Id: I80876ddfd88c70e7cdf79bd81762f620439667ca Signed-off-by: Venkata Harish K Kajur <vk250x@att.com>
-rw-r--r--aaicron.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/aaicron.sh b/aaicron.sh
index f977ebf..80b70fe 100644
--- a/aaicron.sh
+++ b/aaicron.sh
@@ -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;