summaryrefslogtreecommitdiff
path: root/yaksh/scripts/yaksh_script.sh
diff options
context:
space:
mode:
Diffstat (limited to 'yaksh/scripts/yaksh_script.sh')
-rw-r--r--yaksh/scripts/yaksh_script.sh13
1 files changed, 5 insertions, 8 deletions
diff --git a/yaksh/scripts/yaksh_script.sh b/yaksh/scripts/yaksh_script.sh
index 83c086c..f19ad3d 100644
--- a/yaksh/scripts/yaksh_script.sh
+++ b/yaksh/scripts/yaksh_script.sh
@@ -1,13 +1,10 @@
#!/bin/bash
# Basic script to install pip packages and run the yaksh code server command
-mkdir /sites/
-echo "** Copying online test directory **"
-cp -r /src/online_test /sites/online_test
-cd /sites/online_test
-echo "** Unmounting online test volume **"
-umount /src/online_test
+chown -R nobody output
+chmod -R a+rX data yaksh
+chmod -R o-w data yaksh
echo "** Installing python dependencies **"
-pip3 install -r /sites/online_test/requirements/requirements-codeserver.txt
+pip3 install -r ./requirements-codeserver.txt
echo "** Running code server **"
-python3 -m yaksh.code_server
+/usr/bin/sudo -su nobody python3 -m yaksh.code_server