From 7ddc0d12836fa551cbb5b8edaeaee2a531f481a0 Mon Sep 17 00:00:00 2001
From: Ethan Robert <ethan.rbrt90@gmail.com>
Date: Wed, 26 Feb 2025 17:05:47 +0100
Subject: [PATCH] Added install script for teacher side

---
 install_teacher.sh | 29 +++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)
 create mode 100644 install_teacher.sh

diff --git a/install_teacher.sh b/install_teacher.sh
new file mode 100644
index 0000000..53b714c
--- /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
-- 
GitLab