xygt/install.sh

16 lines
375 B
Bash
Raw Permalink Normal View History

2024-01-05 15:18:55 +01:00
# Might dockerise this stuff sooner or later, not now tho.
if [ $EUID -ne 0 ]; then
echo "This script must be run as root."
exit 1
fi
apt install mongodb-org python3-pip python3-venv
2024-01-11 22:07:07 +01:00
systemctl enable --now mongod
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
2024-01-05 15:18:55 +01:00
echo "Installation complete, launch xygt with ./run.py (in the venv)"