diff options
author | Andrew Gauld <agauld@att.com> | 2020-03-30 15:50:02 +0000 |
---|---|---|
committer | Andrew Gauld <agauld@att.com> | 2020-03-30 15:50:54 +0000 |
commit | 6368b68071f27cce439d1940b9806100f7aef0e1 (patch) | |
tree | aa5ab74dd45407f82cafff68108e83063bb76c28 | |
parent | f6a8a8322d09d5f6012167d298dea6f0471cb82c (diff) |
genprocessor-http non-root permissions changes
Change-Id: I734bbfac8b1b260524ef174518fea3e2229cf175
Issue-ID: DCAEGEN2-2170
Signed-off-by: Andrew Gauld <agauld@att.com>
-rw-r--r-- | mod/genprocessor/pom.xml | 6 |
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 && useradd --shell /bin/bash -u 1000 -g 1000 -m dcaemod</runCmd> + <runCmd>sed -i /etc/nginx/nginx.conf -e '/^user /d' && touch /var/run/nginx.pid && mkdir -p /www/data && 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 && useradd --shell /bin/bash -u 1000 -g 1000 -m dcaemod && mkdir -p /work && chown dcaemod:dcaemod /work</runCmd> + <runCmd>groupadd -g 1000 dcaemod && 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> |