diff --git a/install_teacher.sh b/install_teacher.sh new file mode 100644 index 0000000000000000000000000000000000000000..53b714ceaacf601135e10383a03d8307441a7efd --- /dev/null +++ b/install_teacher.sh @@ -0,0 +1,29 @@ +#!/bin/sh + +echo "Ce programme va installer EasyCom sur cet ordinateur." +echo "Appuyez sur [ENTRÉE] pour continuer ou Ctrl+C pour annuler" +read + +echo "Installing python requests" +pip install --break-system-packages requests + +git clone https://gitlab.univ-lille.fr/ethan.robert.etu/easycom.git ~/.easycom-temp +echo "Copying files" +mkdir ~/.bin +cp -r ~/.easycom-temp/Teacher/easycom ~/.bin + +echo "Making files executable" +chmod +x ~/.bin/easycom + +echo "Adding easycom to the PATH environment variable" +echo "export PATH='~/.bin:$PATH'" >> ~/.bashrc + +echo "Removing garbage" +rm -rf ~/.easycom-temp + +echo "Congratulations!" +echo "EasyCom is now installed!" +echo + +echo "To run the tool, just type:" +echo "$ easycom" \ No newline at end of file