From b08cebea6b591310a668625b57b67e5f94faba4f Mon Sep 17 00:00:00 2001 From: zeus Date: Sat, 15 May 2021 00:51:07 +0300 Subject: [PATCH] add jupyter --- install/usr/share/swarmlab.io/sec/swarmlab-sec | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/install/usr/share/swarmlab.io/sec/swarmlab-sec b/install/usr/share/swarmlab.io/sec/swarmlab-sec index 749a2d3..3d2868b 100755 --- a/install/usr/share/swarmlab.io/sec/swarmlab-sec +++ b/install/usr/share/swarmlab.io/sec/swarmlab-sec @@ -124,6 +124,7 @@ if [ -d "$Wdir/project" ]; then ENV NOTVISIBLE "in users profile" ENV USER1 docker + ENV USER1_ID 1001 ENV USER_HOME /home/docker ENV SSHDIR \${USER_HOME}/.ssh COPY ssh/ \${SSHDIR}/ @@ -133,6 +134,7 @@ if [ -d "$Wdir/project" ]; then && rm -rf /usr/share/man \ && rm -rf /usr/share/locale \ && mkdir -p /var/run/sshd \ + && useradd -m -s /bin/bash -N -u $USER1_UID $USER1 \ && echo 'root:$ROOT_PASSWORD' | chpasswd \ && echo "export VISIBLE=now" >> /etc/profile \ && mkdir -p /home/docker/project \ @@ -200,6 +202,7 @@ if [ "$Wdir" == "$HOME" ]; then ENV NOTVISIBLE "in users profile" ENV USER1 docker + ENV USER1_ID 1001 ENV USER_HOME /home/docker ENV SSHDIR \${USER_HOME}/.ssh COPY ssh/ \${SSHDIR}/ @@ -209,6 +212,7 @@ if [ "$Wdir" == "$HOME" ]; then && rm -rf /usr/share/man \ && rm -rf /usr/share/locale \ && mkdir -p /var/run/sshd \ + && useradd -m -s /bin/bash -N -u $USER1_UID $USER1 \ && echo 'root:$ROOT_PASSWORD' | chpasswd \ && echo "export VISIBLE=now" >> /etc/profile \ && mkdir -p /home/docker/project \