Skip to content
Snippets Groups Projects
Commit 6cba50ad authored by Ethan Robert's avatar Ethan Robert
Browse files

Added install script for student side

parent 8abefeb8
No related branches found
No related tags found
No related merge requests found
#!/bin/bash
echo "Ce programme va installer EasyCom sur cet ordinateur."
echo "Appuyez sur [ENTRÉE] pour continuer ou Ctrl+C pour annuler"
read -p
echo "Installing fastapi and uvicorn"
pip install --break-system-packages fastapi uvicorn
git clone https://gitlab.univ-lille.fr/ethan.robert.etu/easycom.git ~/.easycom-temp
echo "Copying files"
mkdir ~/.easycom
cp -r ~/.easycom-temp/Student/API/* ~/.easycom
mkdir ~/.bin
cp - ~/.easycom-temp/Student/easycom ~/.bin
echo "Making things executable"
chmod +x ~/.bin/easycom
chmod +x ~/.easycom/start.sh
echo "Adding API to ~/.bashrc"
echo "sh -c '~/.easycom/start.sh' & disown" >> ~/.bashrc
echo "export PATH='~/.bin:$PATH'" >> ~/.bashrc
echo
echo
echo "Congratulations!"
echo "EasyCom is now installed! The API will auto start on session startup"
echo
echo "To run the tool, just type:"
echo "$ easycom"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment