summaryrefslogtreecommitdiffstats
path: root/mod/genprocessor/pom.xml
diff options
context:
space:
mode:
authorAndrew Gauld <agauld@att.com>2020-03-30 15:50:02 +0000
committerAndrew Gauld <agauld@att.com>2020-03-30 15:50:54 +0000
commit6368b68071f27cce439d1940b9806100f7aef0e1 (patch)
treeaa5ab74dd45407f82cafff68108e83063bb76c28 /mod/genprocessor/pom.xml
parentf6a8a8322d09d5f6012167d298dea6f0471cb82c (diff)
genprocessor-http non-root permissions changes
Change-Id: I734bbfac8b1b260524ef174518fea3e2229cf175 Issue-ID: DCAEGEN2-2170 Signed-off-by: Andrew Gauld <agauld@att.com>
Diffstat (limited to 'mod/genprocessor/pom.xml')
-rw-r--r--mod/genprocessor/pom.xml6
1 files changed, 3 insertions, 3 deletions
diff --git a/mod/genprocessor/pom.xml b/mod/genprocessor/pom.xml
index ccc1ce3..3a53265 100644
--- a/mod/genprocessor/pom.xml
+++ b/mod/genprocessor/pom.xml
@@ -140,7 +140,7 @@ limitations under the License.
</inline>
</assembly>
<runCmds>
- <runCmd>groupadd -g 1000 dcaemod &amp;&amp; useradd --shell /bin/bash -u 1000 -g 1000 -m dcaemod</runCmd>
+ <runCmd>sed -i /etc/nginx/nginx.conf -e '/^user /d' &amp;&amp; touch /var/run/nginx.pid &amp;&amp; mkdir -p /www/data &amp;&amp; chown -R nginx:nginx /www /etc/nginx /var/cache/nginx /var/log/nginx /var/run/nginx.pid</runCmd>
</runCmds>
<user>dcaemod</user>
<entryPoint>
@@ -166,7 +166,7 @@ limitations under the License.
<descriptorRef>artifact-with-dependencies</descriptorRef>
</assembly>
<runCmds>
- <runCmd>groupadd -g 1000 dcaemod &amp;&amp; useradd --shell /bin/bash -u 1000 -g 1000 -m dcaemod &amp;&amp; mkdir -p /work &amp;&amp; chown dcaemod:dcaemod /work</runCmd>
+ <runCmd>groupadd -g 1000 dcaemod &amp;&amp; useradd --shell /bin/bash -u 1000 -g 1000 -m dcaemod</runCmd>
</runCmds>
<workdir>/maven</workdir>
<env>
@@ -174,7 +174,7 @@ limitations under the License.
<GENPROC_ONBOARDING_API_HOST>http://onboarding-api:8080/onboarding</GENPROC_ONBOARDING_API_HOST>
<GENPROC_SLEEP_SEC>10</GENPROC_SLEEP_SEC>
</env>
- <user>dcaemod</user>
+ <user>nginx</user>
<entryPoint>
<exec>
<arg>java</arg>