diff --git a/install/usr/share/swarmlab.io/sec/swarmlab-sec b/install/usr/share/swarmlab.io/sec/swarmlab-sec index e43135c..e8a78e2 100755 --- a/install/usr/share/swarmlab.io/sec/swarmlab-sec +++ b/install/usr/share/swarmlab.io/sec/swarmlab-sec @@ -172,7 +172,17 @@ if [ -d "$Wdir/project" ]; then && cat \${SSHDIR}/*.pub >> \${SSHDIR}/authorized_keys \ && chmod -R 600 \${SSHDIR}/* \ && chown -R \${USER1}:\${USER1} \${SSHDIR} \ - && chown -R \${USER1}:\${USER1} \${USER_HOME} + && chown -R \${USER1}:\${USER1} \${USER_HOME} \ + && apt-get update \ + && DEBIAN_FRONTEND=noninteractive apt-get install -y \ + gdebi-core \ + && wget https://download2.rstudio.org/server/bionic/amd64/rstudio-server-2021.09.1-372-amd64.deb \ + && gdebi --non-interactive rstudio-server-2021.09.1-372-amd64.deb \ + && rm -f rstudio-server-2021.09.1-372-amd64.deb \ + && apt-get autoremove -y \ + && apt-get clean \ + && rm -rf /var/lib/apt/lists/* + COPY .vimrc /home/docker @@ -257,7 +267,16 @@ if [ "$Wdir" == "$HOME" ]; then && cat \${SSHDIR}/*.pub >> \${SSHDIR}/authorized_keys \ && chmod -R 600 \${SSHDIR}/* \ && chown -R \${USER1}:\${USER1} \${SSHDIR} \ - && chown -R \${USER1}:\${USER1} \${USER_HOME} + && chown -R \${USER1}:\${USER1} \${USER_HOME} \ + && apt-get update \ + && DEBIAN_FRONTEND=noninteractive apt-get install -y \ + gdebi-core \ + && wget https://download2.rstudio.org/server/bionic/amd64/rstudio-server-2021.09.1-372-amd64.deb \ + && gdebi --non-interactive rstudio-server-2021.09.1-372-amd64.deb \ + && rm -f rstudio-server-2021.09.1-372-amd64.deb \ + && apt-get autoremove -y \ + && apt-get clean \ + && rm -rf /var/lib/apt/lists/* COPY .vimrc /home/docker