|
|
@ -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}/* \ |
|
|
|