mirror of
https://github.com/Ravinou/borgwarehouse
synced 2024-05-19 05:56:39 +02:00
Added check if GID already exists
This commit is contained in:
parent
a3275adfd1
commit
d3b03cbf6a
|
@ -34,7 +34,7 @@ RUN apt-get update && apt-get install -y \
|
|||
supervisor curl jq jc borgbackup/bookworm-backports openssh-server rsyslog && \
|
||||
apt-get clean && rm -rf /var/lib/apt/lists/*
|
||||
|
||||
RUN groupadd -g ${GID} borgwarehouse && useradd -m -u ${UID} -g ${GID} borgwarehouse
|
||||
RUN if ! getent group ${GID} ; then groupadd -g ${GID} borgwarehouse; fi && useradd -m -u ${UID} -g ${GID} borgwarehouse
|
||||
|
||||
RUN cp /etc/ssh/moduli /home/borgwarehouse/
|
||||
|
||||
|
@ -53,4 +53,4 @@ USER borgwarehouse
|
|||
|
||||
EXPOSE 3000 22
|
||||
|
||||
ENTRYPOINT ["./docker-bw-init.sh"]
|
||||
ENTRYPOINT ["./docker-bw-init.sh"]
|
||||
|
|
Loading…
Reference in a new issue