From 2966f1965d1281072de987800f6dbd30a6910f1e Mon Sep 17 00:00:00 2001 From: zeus Date: Thu, 30 Dec 2021 00:39:10 +0200 Subject: [PATCH] add --- install/usr/share/swarmlab.io/sec/swarmlab-sec | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/install/usr/share/swarmlab.io/sec/swarmlab-sec b/install/usr/share/swarmlab.io/sec/swarmlab-sec index 2e42304..e43135c 100755 --- a/install/usr/share/swarmlab.io/sec/swarmlab-sec +++ b/install/usr/share/swarmlab.io/sec/swarmlab-sec @@ -171,13 +171,15 @@ if [ -d "$Wdir/project" ]; then && echo "StrictHostKeyChecking no" > \${SSHDIR}/config \ && cat \${SSHDIR}/*.pub >> \${SSHDIR}/authorized_keys \ && chmod -R 600 \${SSHDIR}/* \ - && chown -R \${USER1}:\${USER1} \${SSHDIR} + && chown -R \${USER1}:\${USER1} \${SSHDIR} \ + && chown -R \${USER1}:\${USER1} \${USER_HOME} COPY .vimrc /home/docker EXPOSE 80 EXPOSE 6901 + EXPOSE 8787 EXPOSE 3787 EOF fi @@ -254,7 +256,8 @@ if [ "$Wdir" == "$HOME" ]; then && echo "StrictHostKeyChecking no" > \${SSHDIR}/config \ && cat \${SSHDIR}/*.pub >> \${SSHDIR}/authorized_keys \ && chmod -R 600 \${SSHDIR}/* \ - && chown -R \${USER1}:\${USER1} \${SSHDIR} + && chown -R \${USER1}:\${USER1} \${SSHDIR} \ + && chown -R \${USER1}:\${USER1} \${USER_HOME} COPY .vimrc /home/docker @@ -262,6 +265,7 @@ if [ "$Wdir" == "$HOME" ]; then EXPOSE 80 EXPOSE 6901 + EXPOSE 8787 EXPOSE 3787 EOF fi @@ -300,6 +304,7 @@ services: ports: - "\${R_PORT1}:6901" - "\${R_PORT2}:3787" + - "\${R_PORT3}:8787" networks: - ${HYBRID_NETWORK} volumes: