summaryrefslogtreecommitdiffstats
path: root/controlloop/common/feature-controlloop-utils/src/main
diff options
context:
space:
mode:
authoruj426b <uj426b@att.com>2020-07-13 15:30:05 -0400
committeruj426b <uj426b@att.com>2020-07-14 16:44:31 -0400
commit480c931b5b332b3ffdbfa68e067b9830b416d7eb (patch)
tree6a2138467df3e109565a39398f8572bf4974ab81 /controlloop/common/feature-controlloop-utils/src/main
parentc3879a50de6473b8673faa9f958a0c646a4b8ca9 (diff)
Update-config simulator prop. with mvn assembly.
Change-Id: Ia91fad549dfba0b3caa623be18652b93d0bc7fce Issue-ID: POLICY-2716 Signed-off-by: uj426b <uj426b@att.com>
Diffstat (limited to 'controlloop/common/feature-controlloop-utils/src/main')
-rw-r--r--controlloop/common/feature-controlloop-utils/src/main/feature/install/enable38
1 files changed, 6 insertions, 32 deletions
diff --git a/controlloop/common/feature-controlloop-utils/src/main/feature/install/enable b/controlloop/common/feature-controlloop-utils/src/main/feature/install/enable
index 1b2b4d6f2..682f05ec2 100644
--- a/controlloop/common/feature-controlloop-utils/src/main/feature/install/enable
+++ b/controlloop/common/feature-controlloop-utils/src/main/feature/install/enable
@@ -20,40 +20,14 @@
# ============LICENSE_END=========================================================
##
+# This is to rename the original files as there is a single property file packaged
+# with a different name, utilized to handle all http clients instead of using the originals.
+# So, just keeping the original files safe during enable.
+
for actor in AAI SO SDNC VFC GUARD
do
FILE=${POLICY_HOME}/config/${actor}-http-client.properties
- if [[ -f ${FILE} && ${actor} != GUARD ]]; then
- case ${actor} in
- AAI)
- PORT=6666
- ;;
- SO)
- PORT=6667
- ;;
- VFC)
- PORT=6668
- ;;
- SDNC)
- PORT=6670
- ;;
- esac
- sed -i.ofc \
- -e "s/^http.client.services.${actor}.https[\s\t]*=.*/http.client.services.${actor}.https=false/g" \
- -e "s/^http.client.services.${actor}.host[\s\t]*=.*/http.client.services.${actor}.host=localhost/g" \
- -e "s/^http.client.services.${actor}.userName[\s\t]*=.*/http.client.services.${actor}.userName=policy/g" \
- -e "s/^http.client.services.${actor}.password[\s\t]*=.*/http.client.services.${actor}.password=policy/g" \
- -e "s/^http.client.services.${actor}.port[\s\t]*=.*/http.client.services.${actor}.port=${PORT}/g" \
- -e "s/^http.client.services.${actor}.contextUriPath[\s\t]*=.*/http.client.services.${actor}.contextUriPath=/g" \
- ${FILE}
- else
- sed -i.ofc \
- -e "s/^http.client.services.${actor}.https[\s\t]*=.*/http.client.services.${actor}.https=false/g" \
- -e "s/^http.client.services.${actor}.host[\s\t]*=.*/http.client.services.${actor}.host=localhost/g" \
- -e "s/^http.client.services.${actor}.port[\s\t]*=.*/http.client.services.${actor}.port=6669/g" \
- -e "s!^http.client.services.${actor}.contextUriPath[\s\t]*=.*!http.client.services.${actor}.contextUriPath=policy/pdpx/v1/!g" \
- -e "s/^http.client.services.${actor}.userName[\s\t]*=.*/http.client.services.${actor}.userName=/g" \
- -e "s/^http.client.services.${actor}.password[\s\t]*=.*/http.client.services.${actor}.password=/g" \
- ${FILE}
+ if [[ ! -f ${FILE}.ofc ]]; then
+ mv ${FILE} ${FILE}.ofc
fi
done