summaryrefslogtreecommitdiffstats
path: root/aaicron.sh
blob: 80b70fed365921c5c4eb8556b51e893a82a531bd (plain)
1
2
3
4
5
6
7
#!/bin/bash

RESOURCES_COUNT=$(docker ps | grep 'testconfig_aai-resources.api.simpledemo.openecomp.org_1' | wc -l);

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;