From 700280beb59bee6a86688fe5448acfc9a624a163 Mon Sep 17 00:00:00 2001 From: Andrey Koltsov Date: Thu, 7 Nov 2024 13:27:11 +0100 Subject: [PATCH] Generate homedirectory upon the user creation. (#174) --- configs/linux/Server/Ubuntu/Ubuntu.Dockerfile | 2 +- configs/linux/Server/UbuntuARM/UbuntuARM.Dockerfile | 2 +- context/generated/linux/Server/Ubuntu/18.04/Dockerfile | 2 +- context/generated/linux/Server/Ubuntu/20.04/Dockerfile | 2 +- context/generated/linux/Server/UbuntuARM/18.04/Dockerfile | 2 +- context/generated/linux/Server/UbuntuARM/20.04/Dockerfile | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/configs/linux/Server/Ubuntu/Ubuntu.Dockerfile b/configs/linux/Server/Ubuntu/Ubuntu.Dockerfile index c784d4f00..2b7fea7ef 100644 --- a/configs/linux/Server/Ubuntu/Ubuntu.Dockerfile +++ b/configs/linux/Server/Ubuntu/Ubuntu.Dockerfile @@ -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 && \ diff --git a/configs/linux/Server/UbuntuARM/UbuntuARM.Dockerfile b/configs/linux/Server/UbuntuARM/UbuntuARM.Dockerfile index 6884f23f5..d4d6666e3 100644 --- a/configs/linux/Server/UbuntuARM/UbuntuARM.Dockerfile +++ b/configs/linux/Server/UbuntuARM/UbuntuARM.Dockerfile @@ -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 && \ diff --git a/context/generated/linux/Server/Ubuntu/18.04/Dockerfile b/context/generated/linux/Server/Ubuntu/18.04/Dockerfile index e8984cd66..f5af9685a 100644 --- a/context/generated/linux/Server/Ubuntu/18.04/Dockerfile +++ b/context/generated/linux/Server/Ubuntu/18.04/Dockerfile @@ -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 && \ diff --git a/context/generated/linux/Server/Ubuntu/20.04/Dockerfile b/context/generated/linux/Server/Ubuntu/20.04/Dockerfile index 42f024fd7..f2bd7d5fd 100644 --- a/context/generated/linux/Server/Ubuntu/20.04/Dockerfile +++ b/context/generated/linux/Server/Ubuntu/20.04/Dockerfile @@ -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 && \ diff --git a/context/generated/linux/Server/UbuntuARM/18.04/Dockerfile b/context/generated/linux/Server/UbuntuARM/18.04/Dockerfile index 23b5bfb85..151b35a7a 100644 --- a/context/generated/linux/Server/UbuntuARM/18.04/Dockerfile +++ b/context/generated/linux/Server/UbuntuARM/18.04/Dockerfile @@ -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 && \ diff --git a/context/generated/linux/Server/UbuntuARM/20.04/Dockerfile b/context/generated/linux/Server/UbuntuARM/20.04/Dockerfile index 323ae8ad3..a6f65a59b 100644 --- a/context/generated/linux/Server/UbuntuARM/20.04/Dockerfile +++ b/context/generated/linux/Server/UbuntuARM/20.04/Dockerfile @@ -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 && \