Merge "[COMMON] Get rid of a few bashisms"
authorSylvain Desbureaux <sylvain.desbureaux@orange.com>
Mon, 8 Mar 2021 14:02:56 +0000 (14:02 +0000)
committerGerrit Code Review <gerrit@onap.org>
Mon, 8 Mar 2021 14:02:56 +0000 (14:02 +0000)
kubernetes/common/certInitializer/templates/_certInitializer.yaml
kubernetes/common/etcd/templates/statefulset.yaml
kubernetes/policy/components/policy-apex-pdp/templates/statefulset.yaml

index a46400b..414192e 100644 (file)
@@ -67,9 +67,8 @@
     - sh
     - -c
     - |
-      #!/usr/bin/env bash
       /opt/app/aaf_config/bin/agent.sh
-      source /opt/app/aaf_config/bin/retrieval_check.sh
+      . /opt/app/aaf_config/bin/retrieval_check.sh
 {{-     if $initRoot.aaf_add_config }}
       /opt/app/aaf_config/bin/aaf-add-config.sh
 {{-     end }}
index e39b8c4..a343d4f 100644 (file)
@@ -184,7 +184,7 @@ spec:
                 fi
 
                 cat /var/run/etcd/new_member_envs
-                source /var/run/etcd/new_member_envs
+                . /var/run/etcd/new_member_envs
 
                 collect_member &
 
index 10c2a05..586f468 100755 (executable)
@@ -71,7 +71,7 @@ spec:
           imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
           command: ["sh","-c"]
           args: ["if [ -f {{ .Values.certInitializer.credsPath }}/.ci ]; then \
-                  source {{ .Values.certInitializer.credsPath }}/.ci; fi;\
+                  . {{ .Values.certInitializer.credsPath }}/.ci; fi;\
                   /opt/app/policy/apex-pdp/bin/apexOnapPf.sh -c /home/apexuser/config/OnapPfConfig.json"]
           ports:
           - containerPort: {{ .Values.service.externalPort }}