Dynamic Config Helm Changes

This reverts commit 64f3435aa9d2e0a720e2f366a2db9eed5d74b118.

Reason for revert: revert for review

Change-Id: Iecd863deba01cdd9f433945e69e31e94f717f4eb
diff --git a/omec/5g-control-plane/templates/bin/_amf-run.sh.tpl b/omec/5g-control-plane/templates/bin/_amf-run.sh.tpl
index e0340be..6431556 100644
--- a/omec/5g-control-plane/templates/bin/_amf-run.sh.tpl
+++ b/omec/5g-control-plane/templates/bin/_amf-run.sh.tpl
@@ -10,6 +10,7 @@
 cp /free5gc/amf/amf /tmp/coredump/
 {{- end }}
 
-cat /free5gc/config/amfcfg.conf
+cd /free5gc
+cat config/amfcfg.conf
 
-/free5gc/amf/amf -amfcfg /free5gc/config/amfcfg.conf
+./amf/amf -amfcfg config/amfcfg.conf
diff --git a/omec/5g-control-plane/templates/bin/_ausf-run.sh.tpl b/omec/5g-control-plane/templates/bin/_ausf-run.sh.tpl
index 52a47d8..ed35bf5 100644
--- a/omec/5g-control-plane/templates/bin/_ausf-run.sh.tpl
+++ b/omec/5g-control-plane/templates/bin/_ausf-run.sh.tpl
@@ -11,8 +11,6 @@
 {{- end }}
 
 cd /free5gc
-cp /tmp/config/* config/
-
 cat config/ausfcfg.conf
 
 ./ausf/ausf -ausfcfg config/ausfcfg.conf
diff --git a/omec/5g-control-plane/templates/bin/_nrf-run.sh.tpl b/omec/5g-control-plane/templates/bin/_nrf-run.sh.tpl
index fcce2ac..342f1fc 100644
--- a/omec/5g-control-plane/templates/bin/_nrf-run.sh.tpl
+++ b/omec/5g-control-plane/templates/bin/_nrf-run.sh.tpl
@@ -11,8 +11,6 @@
 {{- end }}
 
 cd /free5gc
-cp /tmp/config/* config/
-sed -i "s/POD_IP/${POD_IP}/g" config/nrfcfg.conf
 
 cat config/nrfcfg.conf
 
diff --git a/omec/5g-control-plane/templates/bin/_nssf-run.sh.tpl b/omec/5g-control-plane/templates/bin/_nssf-run.sh.tpl
index 1a7b680..d170e4d 100644
--- a/omec/5g-control-plane/templates/bin/_nssf-run.sh.tpl
+++ b/omec/5g-control-plane/templates/bin/_nssf-run.sh.tpl
@@ -11,7 +11,6 @@
 {{- end }}
 
 cd /free5gc
-cp /tmp/config/* config/
 
 cat config/nssfcfg.conf
 
diff --git a/omec/5g-control-plane/templates/bin/_pcf-run.sh.tpl b/omec/5g-control-plane/templates/bin/_pcf-run.sh.tpl
index 63deb77..bdcf857 100644
--- a/omec/5g-control-plane/templates/bin/_pcf-run.sh.tpl
+++ b/omec/5g-control-plane/templates/bin/_pcf-run.sh.tpl
@@ -11,7 +11,6 @@
 {{- end }}
 
 cd /free5gc
-cp /tmp/config/* config/
 
 cat config/pcfcfg.conf
 
diff --git a/omec/5g-control-plane/templates/bin/_smf-run.sh.tpl b/omec/5g-control-plane/templates/bin/_smf-run.sh.tpl
index bdad8fb..3e59803 100644
--- a/omec/5g-control-plane/templates/bin/_smf-run.sh.tpl
+++ b/omec/5g-control-plane/templates/bin/_smf-run.sh.tpl
@@ -11,10 +11,8 @@
 {{- end }}
 
 cd /free5gc
-cp /tmp/config/* config/
-sed -i "s/POD_IP/${POD_IP}/g" config/smfcfg.conf
 
 cat config/smfcfg.conf
-cat config/uerouting.conf
+cat uerouting/uerouting.conf
 
-./smf/smf -smfcfg config/smfcfg.conf -uerouting config/uerouting.conf
+./smf/smf -smfcfg config/smfcfg.conf -uerouting uerouting/uerouting.conf
diff --git a/omec/5g-control-plane/templates/bin/_udm-run.sh.tpl b/omec/5g-control-plane/templates/bin/_udm-run.sh.tpl
index 3d26271..36d1d65 100644
--- a/omec/5g-control-plane/templates/bin/_udm-run.sh.tpl
+++ b/omec/5g-control-plane/templates/bin/_udm-run.sh.tpl
@@ -11,7 +11,6 @@
 {{- end }}
 
 cd /free5gc
-cp /tmp/config/* config/
 
 cat config/udmcfg.conf
 
diff --git a/omec/5g-control-plane/templates/bin/_udr-run.sh.tpl b/omec/5g-control-plane/templates/bin/_udr-run.sh.tpl
index c9a66b4..da52959 100644
--- a/omec/5g-control-plane/templates/bin/_udr-run.sh.tpl
+++ b/omec/5g-control-plane/templates/bin/_udr-run.sh.tpl
@@ -11,7 +11,6 @@
 {{- end }}
 
 cd /free5gc
-cp /tmp/config/* config/
 
 cat config/udrcfg.conf
 
diff --git a/omec/5g-control-plane/templates/bin/_webui-run.sh.tpl b/omec/5g-control-plane/templates/bin/_webui-run.sh.tpl
index 4704133..bcca02b 100644
--- a/omec/5g-control-plane/templates/bin/_webui-run.sh.tpl
+++ b/omec/5g-control-plane/templates/bin/_webui-run.sh.tpl
@@ -11,7 +11,6 @@
 {{- end }}
 
 cd /free5gc
-cp /tmp/config/* config/
 
 cat config/webuicfg.conf