add date and time to valgrind file name
Change-Id: I1c6804f8d2479bcc98f08fad511605d2df2d47d3
diff --git a/omec-control-plane/Chart.yaml b/omec-control-plane/Chart.yaml
index a9d8865..faf834a 100644
--- a/omec-control-plane/Chart.yaml
+++ b/omec-control-plane/Chart.yaml
@@ -10,4 +10,4 @@
name: omec-control-plane
icon: https://guide.opencord.org/logos/cord.svg
-version: 0.10.0
+version: 0.10.1
diff --git a/omec-control-plane/templates/bin/_mme-run.sh.tpl b/omec-control-plane/templates/bin/_mme-run.sh.tpl
index 1712a77..3d47773 100644
--- a/omec-control-plane/templates/bin/_mme-run.sh.tpl
+++ b/omec-control-plane/templates/bin/_mme-run.sh.tpl
@@ -26,9 +26,12 @@
"s1ap-app")
echo "Starting s1ap-app"
echo "conf/s1ap.json"
+ today=`date '+%Y_%m_%d__%H_%M_%S'`;
+ filename="/tmp/valgrind_output_s1ap_$today.txt"
+ echo $filename
cat conf/s1ap.json
{{- if .Values.config.valgrind.enabled }}
- valgrind --log-file=/bin/valgrind_output_s1ap.txt --tool=memcheck -v --leak-check=full --show-leak-kinds=all ./bin/s1ap-app
+ valgrind --log-file=$filename --tool=memcheck -v --leak-check=full --show-leak-kinds=all ./bin/s1ap-app
{{- else }}
./bin/s1ap-app
{{- end }}