You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@datalab.apache.org by lf...@apache.org on 2022/11/08 08:54:53 UTC

[incubator-datalab] branch DATALAB-3099 created (now d49fa94ad)

This is an automated email from the ASF dual-hosted git repository.

lfrolov pushed a change to branch DATALAB-3099
in repository https://gitbox.apache.org/repos/asf/incubator-datalab.git


      at d49fa94ad [DATALAB-3099]: added pause before creating user

This branch includes the following new commits:

     new d49fa94ad [DATALAB-3099]: added pause before creating user

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@datalab.apache.org
For additional commands, e-mail: commits-help@datalab.apache.org


[incubator-datalab] 01/01: [DATALAB-3099]: added pause before creating user

Posted by lf...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

lfrolov pushed a commit to branch DATALAB-3099
in repository https://gitbox.apache.org/repos/asf/incubator-datalab.git

commit d49fa94ad33a9ad18f133abaff38f1d8146b91de
Author: leonidfrolov <fr...@gmail.com>
AuthorDate: Tue Nov 8 10:54:34 2022 +0200

    [DATALAB-3099]: added pause before creating user
---
 infrastructure-provisioning/src/base/scripts/create_ssh_user.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/infrastructure-provisioning/src/base/scripts/create_ssh_user.py b/infrastructure-provisioning/src/base/scripts/create_ssh_user.py
index 3af70e5a9..2cb69d626 100644
--- a/infrastructure-provisioning/src/base/scripts/create_ssh_user.py
+++ b/infrastructure-provisioning/src/base/scripts/create_ssh_user.py
@@ -43,6 +43,7 @@ args = parser.parse_args()
 
 def ensure_ssh_user(initial_user, os_user, sudo_group):
     if not exists(conn, '/home/{}/.ssh_user_ensured'.format(initial_user)):
+        time.sleep(180)
         conn.sudo('useradd -m -G {1} -s /bin/bash {0}'.format(os_user, sudo_group))
         conn.sudo('bash -c "echo \'{} ALL = NOPASSWD:ALL\' >> /etc/sudoers"'.format(os_user))
         conn.sudo('mkdir /home/{}/.ssh'.format(os_user))


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@datalab.apache.org
For additional commands, e-mail: commits-help@datalab.apache.org