diff options
author | ankitjavalkar | 2017-12-26 16:46:25 +0530 |
---|---|---|
committer | ankitjavalkar | 2018-01-04 11:37:21 +0530 |
commit | 260e36f6ef7ad9c208501ab8948a9579992d7a02 (patch) | |
tree | de6bbecd505d92601a05516c1c2c86b00f31b129 /tasks.py | |
parent | 280216008e6906c8418e29610e3b5b593908e915 (diff) | |
download | online_test-260e36f6ef7ad9c208501ab8948a9579992d7a02.tar.gz online_test-260e36f6ef7ad9c208501ab8948a9579992d7a02.tar.bz2 online_test-260e36f6ef7ad9c208501ab8948a9579992d7a02.zip |
Change as per review suggestions
Diffstat (limited to 'tasks.py')
-rw-r--r-- | tasks.py | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -27,9 +27,9 @@ def remove_check_file(path): os.remove(path) def run_as(os_name): - if os_name.startswith('linux') or os_name == 'darwin': + if os_name.startswith('linux') or os_name == 'darwin' or os_name.startswith('freebsd'): return 'sudo' - elif os_name.startswith('Win32'): + else: # For os_name = 'Win32' return None def get_cmd(run_as_cmd, base_cmd): @@ -225,7 +225,7 @@ def createsuperuser(ctx): ctx.run(cmd) print ("** Done! Created Superuser **") - base_mod_cmd = "docker exec -it yaksh_django python3 manage.py add_group" + base_mod_cmd = "docker exec -i yaksh_django python3 manage.py add_group" cmd = get_cmd(run_as_cmd, base_mod_cmd) print ("** Creating Moderator group **") ctx.run(cmd) |