From 2d8cf29c8fe936437d4fb756990012d2ec85e6a5 Mon Sep 17 00:00:00 2001 From: zeus Date: Sat, 6 Mar 2021 21:51:32 +0200 Subject: [PATCH] gimp --- install/usr/share/swarmlab.io/sec/swarmlab-sec | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/install/usr/share/swarmlab.io/sec/swarmlab-sec b/install/usr/share/swarmlab.io/sec/swarmlab-sec index c369d40..ef5c7ad 100755 --- a/install/usr/share/swarmlab.io/sec/swarmlab-sec +++ b/install/usr/share/swarmlab.io/sec/swarmlab-sec @@ -141,7 +141,7 @@ if [ -d "$Wdir/project" ]; then && echo "export VISIBLE=now" >> /etc/profile \ && mkdir -p /project \ && mkdir -p /etc/opt \ - && grep -qw ^docker /etc/passwd || useradd -m docker && echo "docker:docker" | chpasswd && adduser docker sudo \ + && grep -qw ^docker /etc/passwd || adduser -h /home/docker && echo "docker:docker" | chpasswd \ && echo "StrictHostKeyChecking no" > \${SSHDIR}/config \ && cat \${SSHDIR}/*.pub >> \${SSHDIR}/authorized_keys \ && chmod -R 600 \${SSHDIR}/* \ @@ -175,7 +175,7 @@ EOF && echo "export VISIBLE=now" >> /etc/profile \ && mkdir -p /etc/opt \ && mkdir -p /project \ - && grep -qw ^docker /etc/passwd || useradd -m docker && echo "docker:docker" | chpasswd && adduser docker sudo \ + && grep -qw ^docker /etc/passwd || adduser -h /home/docker && echo "docker:docker" | chpasswd \ && echo "StrictHostKeyChecking no" > \${SSHDIR}/config \ && cat \${SSHDIR}/*.pub >> \${SSHDIR}/authorized_keys \ && chmod -R 600 \${SSHDIR}/* \ @@ -258,7 +258,7 @@ if [ "$Wdir" == "$HOME" ]; then && echo "export VISIBLE=now" >> /etc/profile \ && mkdir -p /project \ && mkdir -p /etc/opt \ - && grep -qw ^docker /etc/passwd || useradd -m docker && echo "docker:docker" | chpasswd && adduser docker sudo \ + && grep -qw ^docker /etc/passwd || adduser -h /home/docker && echo "docker:docker" | chpasswd \ && echo "StrictHostKeyChecking no" > \${SSHDIR}/config \ && cat \${SSHDIR}/*.pub >> \${SSHDIR}/authorized_keys \ && chmod -R 600 \${SSHDIR}/* \ @@ -292,7 +292,7 @@ else && echo "export VISIBLE=now" >> /etc/profile \ && mkdir -p /etc/opt \ && mkdir -p /project \ - && grep -qw ^docker /etc/passwd || useradd -m docker && echo "docker:docker" | chpasswd && adduser docker sudo \ + && grep -qw ^docker /etc/passwd || adduser -h /home/docker && echo "docker:docker" | chpasswd \ && echo "StrictHostKeyChecking no" > \${SSHDIR}/config \ && cat \${SSHDIR}/*.pub >> \${SSHDIR}/authorized_keys \ && chmod -R 600 \${SSHDIR}/* \