diff options
author | ankitjavalkar | 2017-11-06 20:23:04 +0530 |
---|---|---|
committer | ankitjavalkar | 2017-11-08 18:36:26 +0530 |
commit | 2df9850b13bffd83c244a2994d512c79840c17be (patch) | |
tree | 8adb74f5c9fcc2685fd008c9d542a7c954170449 /yaksh/scripts | |
parent | d6759d3d1b4f7232dbca2025e67ff4f2812968c9 (diff) | |
download | online_test-2df9850b13bffd83c244a2994d512c79840c17be.tar.gz online_test-2df9850b13bffd83c244a2994d512c79840c17be.tar.bz2 online_test-2df9850b13bffd83c244a2994d512c79840c17be.zip |
Add further changes to invoke script and yaksh-script
Diffstat (limited to 'yaksh/scripts')
-rw-r--r-- | yaksh/scripts/yaksh_script.sh | 13 |
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 |