|
|
@ -167,6 +167,7 @@ if [ -d "$Wdir/project" ]; then |
|
|
|
&& mkdir -p /home/docker/project \ |
|
|
|
&& mkdir -p /etc/opt \ |
|
|
|
&& echo "docker:docker" | chpasswd \ |
|
|
|
&& echo "regripper:docker" | chpasswd \ |
|
|
|
&& echo "StrictHostKeyChecking no" > \${SSHDIR}/config \ |
|
|
|
&& cat \${SSHDIR}/*.pub >> \${SSHDIR}/authorized_keys \ |
|
|
|
&& chmod -R 600 \${SSHDIR}/* \ |
|
|
@ -254,6 +255,7 @@ if [ "$Wdir" == "$HOME" ]; then |
|
|
|
&& mkdir -p /home/docker/project \ |
|
|
|
&& mkdir -p /etc/opt \ |
|
|
|
&& echo "docker:docker" | chpasswd \ |
|
|
|
&& echo "regripper:docker" | chpasswd \ |
|
|
|
&& echo "StrictHostKeyChecking no" > \${SSHDIR}/config \ |
|
|
|
&& cat \${SSHDIR}/*.pub >> \${SSHDIR}/authorized_keys \ |
|
|
|
&& chmod -R 600 \${SSHDIR}/* \ |
|
|
|