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:54 UTC

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

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