From 2df9850b13bffd83c244a2994d512c79840c17be Mon Sep 17 00:00:00 2001 From: ankitjavalkar Date: Mon, 6 Nov 2017 20:23:04 +0530 Subject: Add further changes to invoke script and yaksh-script --- yaksh/scripts/yaksh_script.sh | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) (limited to 'yaksh') 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 -- cgit