From 260e36f6ef7ad9c208501ab8948a9579992d7a02 Mon Sep 17 00:00:00 2001 From: ankitjavalkar Date: Tue, 26 Dec 2017 16:46:25 +0530 Subject: Change as per review suggestions --- tasks.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tasks.py b/tasks.py index 6cbdecc..8c78838 100644 --- a/tasks.py +++ b/tasks.py @@ -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) -- cgit