From 56d5d5a3764f190ab221e7d456b685fd0e271d7b Mon Sep 17 00:00:00 2001 From: zeus Date: Wed, 29 Dec 2021 21:53:17 +0200 Subject: [PATCH] add --- install/usr/share/swarmlab.io/sec/swarmlab-sec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install/usr/share/swarmlab.io/sec/swarmlab-sec b/install/usr/share/swarmlab.io/sec/swarmlab-sec index 14b86cd..a65ded7 100755 --- a/install/usr/share/swarmlab.io/sec/swarmlab-sec +++ b/install/usr/share/swarmlab.io/sec/swarmlab-sec @@ -158,13 +158,13 @@ if [ -d "$Wdir/project" ]; then COPY ssh/ \${SSHDIR}/ RUN export DEBIAN_FRONTEND=noninteractive \ + && useradd -ms /bin/bash docker \ && rm -rf /usr/share/doc \ && rm -rf /usr/share/man \ && rm -rf /usr/share/locale \ && mkdir -p /var/run/sshd \ && echo 'root:pass' | chpasswd \ && echo "export VISIBLE=now" >> /etc/profile \ - && addgroup -S docker && adduser -S docker -G docker \ && mkdir -p /home/docker/project \ && mkdir -p /etc/opt \ && echo "docker:docker" | chpasswd \ @@ -241,13 +241,13 @@ if [ "$Wdir" == "$HOME" ]; then ENV USER_HOME /home/docker RUN export DEBIAN_FRONTEND=noninteractive \ + && useradd -ms /bin/bash docker \ && rm -rf /usr/share/doc \ && rm -rf /usr/share/man \ && rm -rf /usr/share/locale \ && mkdir -p /var/run/sshd \ && echo 'root:pass' | chpasswd \ && echo "export VISIBLE=now" >> /etc/profile \ - && addgroup -S docker && adduser -S docker -G docker \ && mkdir -p /home/docker/project \ && mkdir -p /etc/opt \ && echo "docker:docker" | chpasswd \