From 76689e90cba4b92006c42039e594e3ed33af91b0 Mon Sep 17 00:00:00 2001 From: zeus Date: Fri, 10 Dec 2021 20:41:47 +0200 Subject: [PATCH] sshpass --- install/usr/share/swarmlab.io/sec/swarmlab-sec | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/install/usr/share/swarmlab.io/sec/swarmlab-sec b/install/usr/share/swarmlab.io/sec/swarmlab-sec index faffd4e..35806d7 100755 --- a/install/usr/share/swarmlab.io/sec/swarmlab-sec +++ b/install/usr/share/swarmlab.io/sec/swarmlab-sec @@ -169,7 +169,8 @@ if [ -d "$Wdir/project" ]; then && chown -R \${USER1}:\${USER1} \${SSHDIR} COPY .vimrc /home/docker - USER root + WORKDIR /home/docker/project + USER docker EOF fi else @@ -248,7 +249,8 @@ if [ "$Wdir" == "$HOME" ]; then && chown -R \${USER1}:\${USER1} \${SSHDIR} COPY .vimrc /home/docker - USER root + WORKDIR /home/docker/project + USER docker EOF fi