From 76c3434fb6ec07d2fd3407eda56fb498bfa5c19c Mon Sep 17 00:00:00 2001 From: zeus Date: Sat, 6 Mar 2021 21:57:41 +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 ef5c7ad..842353f 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 || adduser -h /home/docker && echo "docker:docker" | chpasswd \ + && 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 || adduser -h /home/docker && echo "docker:docker" | chpasswd \ + && 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 || adduser -h /home/docker && echo "docker:docker" | chpasswd \ + && 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 || adduser -h /home/docker && echo "docker:docker" | chpasswd \ + && echo "docker:docker" | chpasswd \ && echo "StrictHostKeyChecking no" > \${SSHDIR}/config \ && cat \${SSHDIR}/*.pub >> \${SSHDIR}/authorized_keys \ && chmod -R 600 \${SSHDIR}/* \