Skip to content

Commit

Permalink
Generate homedirectory upon the user creation. (#174)
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreyKoltsov1997 authored Nov 7, 2024
1 parent aadd15f commit 700280b
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion configs/linux/Server/Ubuntu/Ubuntu.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ COPY run-server-services.sh /run-services.sh

RUN chmod +x /welcome.sh /run-server.sh /run-services.sh && sync && \
groupadd -g 1000 tcuser && \
useradd -r -u 1000 -g tcuser -d $TEAMCITY_DIST tcuser && \
useradd -r -m -u 1000 -g tcuser -d $TEAMCITY_DIST tcuser && \
echo '[ ! -z "$TERM" -a -x /welcome.sh -a -x /welcome.sh ] && /welcome.sh' >> /etc/bash.bashrc && \
sed -i -e 's/\r$//' /welcome.sh && \
sed -i -e 's/\r$//' /run-server.sh && \
Expand Down
2 changes: 1 addition & 1 deletion configs/linux/Server/UbuntuARM/UbuntuARM.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ COPY run-server-services.sh /run-services.sh

RUN chmod +x /welcome.sh /run-server.sh /run-services.sh && sync && \
groupadd -g 1000 tcuser && \
useradd -r -u 1000 -g tcuser tcuser && \
useradd -r -m -u 1000 -g tcuser tcuser && \
echo '[ ! -z "$TERM" -a -x /welcome.sh -a -x /welcome.sh ] && /welcome.sh' >> /etc/bash.bashrc && \
sed -i -e 's/\r$//' /welcome.sh && \
sed -i -e 's/\r$//' /run-server.sh && \
Expand Down
2 changes: 1 addition & 1 deletion context/generated/linux/Server/Ubuntu/18.04/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ COPY run-server-services.sh /run-services.sh

RUN chmod +x /welcome.sh /run-server.sh /run-services.sh && sync && \
groupadd -g 1000 tcuser && \
useradd -r -u 1000 -g tcuser -d $TEAMCITY_DIST tcuser && \
useradd -r -m -u 1000 -g tcuser -d $TEAMCITY_DIST tcuser && \
echo '[ ! -z "$TERM" -a -x /welcome.sh -a -x /welcome.sh ] && /welcome.sh' >> /etc/bash.bashrc && \
sed -i -e 's/\r$//' /welcome.sh && \
sed -i -e 's/\r$//' /run-server.sh && \
Expand Down
2 changes: 1 addition & 1 deletion context/generated/linux/Server/Ubuntu/20.04/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ COPY run-server-services.sh /run-services.sh

RUN chmod +x /welcome.sh /run-server.sh /run-services.sh && sync && \
groupadd -g 1000 tcuser && \
useradd -r -u 1000 -g tcuser -d $TEAMCITY_DIST tcuser && \
useradd -r -m -u 1000 -g tcuser -d $TEAMCITY_DIST tcuser && \
echo '[ ! -z "$TERM" -a -x /welcome.sh -a -x /welcome.sh ] && /welcome.sh' >> /etc/bash.bashrc && \
sed -i -e 's/\r$//' /welcome.sh && \
sed -i -e 's/\r$//' /run-server.sh && \
Expand Down
2 changes: 1 addition & 1 deletion context/generated/linux/Server/UbuntuARM/18.04/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ COPY run-server-services.sh /run-services.sh

RUN chmod +x /welcome.sh /run-server.sh /run-services.sh && sync && \
groupadd -g 1000 tcuser && \
useradd -r -u 1000 -g tcuser tcuser && \
useradd -r -m -u 1000 -g tcuser tcuser && \
echo '[ ! -z "$TERM" -a -x /welcome.sh -a -x /welcome.sh ] && /welcome.sh' >> /etc/bash.bashrc && \
sed -i -e 's/\r$//' /welcome.sh && \
sed -i -e 's/\r$//' /run-server.sh && \
Expand Down
2 changes: 1 addition & 1 deletion context/generated/linux/Server/UbuntuARM/20.04/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ COPY run-server-services.sh /run-services.sh

RUN chmod +x /welcome.sh /run-server.sh /run-services.sh && sync && \
groupadd -g 1000 tcuser && \
useradd -r -u 1000 -g tcuser tcuser && \
useradd -r -m -u 1000 -g tcuser tcuser && \
echo '[ ! -z "$TERM" -a -x /welcome.sh -a -x /welcome.sh ] && /welcome.sh' >> /etc/bash.bashrc && \
sed -i -e 's/\r$//' /welcome.sh && \
sed -i -e 's/\r$//' /run-server.sh && \
Expand Down

0 comments on commit 700280b

Please sign in to comment.