summaryrefslogtreecommitdiff
path: root/tasks.py
diff options
context:
space:
mode:
authorankitjavalkar2017-12-26 16:46:25 +0530
committerankitjavalkar2018-01-04 11:37:21 +0530
commit260e36f6ef7ad9c208501ab8948a9579992d7a02 (patch)
treede6bbecd505d92601a05516c1c2c86b00f31b129 /tasks.py
parent280216008e6906c8418e29610e3b5b593908e915 (diff)
downloadonline_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.py6
1 files 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)