diff options
author | Venkata Harish K Kajur <vk250x@att.com> | 2018-01-18 11:04:20 -0500 |
---|---|---|
committer | Venkata Harish K Kajur <vk250x@att.com> | 2018-02-15 11:43:25 -0500 |
commit | f702ccd5b3f92fabfe21a1d3f3af762b6c628b88 (patch) | |
tree | 19204529e31d9393f5eb6e496a4ce2a6857d22ac /aai-traversal/src/main/scripts/deleteNamedQuery.sh | |
parent | 0de265c8b69c955c296f368c2875e9845bb824e4 (diff) |
Sync logging context changes
Issue-ID: AAI-493
Change-Id: I8c460cce840b4fe46ff4deacbe3a770755a4c677
Signed-off-by: Venkata Harish K Kajur <vk250x@att.com>
Diffstat (limited to 'aai-traversal/src/main/scripts/deleteNamedQuery.sh')
-rw-r--r-- | aai-traversal/src/main/scripts/deleteNamedQuery.sh | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/aai-traversal/src/main/scripts/deleteNamedQuery.sh b/aai-traversal/src/main/scripts/deleteNamedQuery.sh index 16b20a7..2d19a9c 100644 --- a/aai-traversal/src/main/scripts/deleteNamedQuery.sh +++ b/aai-traversal/src/main/scripts/deleteNamedQuery.sh @@ -26,7 +26,11 @@ # PROGNAME=$(basename $0) +<<<<<<< HEAD OUTFILE=$PROJECT_HOME/logs/misc/${PROGNAME}.log.$(date +\%Y-\%m-\%d) +======= +OUTFILE=/opt/app/aai-traversal/logs/misc/${PROGNAME}.log.$(date +\%Y-\%m-\%d) +>>>>>>> codecloud/release/1802 #OUTFILE=/c/temp/${PROGNAME}.log.$(date +\%Y-\%m-\%d) TS=$(date "+%Y-%m-%d %H:%M:%S") @@ -45,7 +49,11 @@ error_exit () { } j=0 +<<<<<<< HEAD for filepath in `ls $PROJECT_HOME/bundleconfig/etc/scriptdata/named-query-json/*.json|sort -f` +======= +for filepath in `ls /opt/app/aai-traversal/bundleconfig/etc/scriptdata/named-query-json/*.json|sort -f` +>>>>>>> codecloud/release/1802 #for filepath in `ls /c/sources/aai/aaigitnew/bundleconfig-local/etc/scriptdata/named-query-json/*.json|sort -f` do j=$(expr "$j" + 1) @@ -53,7 +61,11 @@ filename=$(basename $filepath) echo "Begin deleteTool for named-query $filename" | tee -a $OUTFILE vers=`grep named-query-uuid $filepath|cut -d':' -f2|cut -d'"' -f2` resource=service-design-and-creation/named-queries/named-query/$vers +<<<<<<< HEAD echo "y" | $PROJECT_HOME/scripts/deleteTool.sh $resource >> $OUTFILE 2>&1 || error_exit "$resource $filepath" $j +======= +echo "y" | /opt/app/aai-traversal/scripts/deleteTool.sh $resource >> $OUTFILE 2>&1 || error_exit "$resource $filepath" $j +>>>>>>> codecloud/release/1802 echo "End deleteTool for named-query $filename" | tee -a $OUTFILE done |