add docker support

This commit is contained in:
xRain
2016-06-07 11:49:59 +08:00
parent 3176156639
commit 57ba8ed2fb
14 changed files with 18144 additions and 25 deletions

View File

@@ -151,7 +151,7 @@ def server_add_user(username, ssh_key_pwd=''):
add a system user in jumpserver
在jumpserver服务器上添加一个用户
"""
bash("useradd -s '%s' '%s'" % (os.path.join(BASE_DIR, 'init.sh'), username))
bash("adduser -s '%s' '%s'" % (os.path.join(BASE_DIR, 'init.sh'), username))
gen_ssh_key(username, ssh_key_pwd)