mirror of
https://github.com/valitydev/bender.git
synced 2024-11-06 09:05:23 +00:00
OPS-268: Adds default logger permissions (#18)
* OPS-268: Adds default logger permissions * No new line
This commit is contained in:
parent
1f76f745ab
commit
c9ea00f875
@ -41,6 +41,8 @@ RUN echo "#!/bin/sh" >> /entrypoint.sh && \
|
|||||||
|
|
||||||
# Setup user
|
# Setup user
|
||||||
RUN groupadd --gid ${USER_GID} ${SERVICE_NAME} && \
|
RUN groupadd --gid ${USER_GID} ${SERVICE_NAME} && \
|
||||||
|
mkdir /var/log/${SERVICE_NAME} && \
|
||||||
|
chown ${USER_UID}:${USER_GID} /var/log/${SERVICE_NAME} && \
|
||||||
useradd --uid ${USER_UID} --gid ${USER_GID} -M ${SERVICE_NAME}
|
useradd --uid ${USER_UID} --gid ${USER_GID} -M ${SERVICE_NAME}
|
||||||
USER ${SERVICE_NAME}
|
USER ${SERVICE_NAME}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user