summaryrefslogtreecommitdiffstats
path: root/aaicron.sh
diff options
context:
space:
mode:
Diffstat (limited to 'aaicron.sh')
-rw-r--r--aaicron.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/aaicron.sh b/aaicron.sh
new file mode 100644
index 0000000..f977ebf
--- /dev/null
+++ b/aaicron.sh
@@ -0,0 +1,7 @@
+#!/bin/bash
+
+RESOURCES_COUNT=$(docker ps | grep 'testconfig_aai-resources.api.simpledemo.openecomp.org_1' | wc -l);
+
+if [ ${RESOURCES_COUNT} -eq 0 ]; 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;