mirror of
https://github.com/jackeilles/xygt.git
synced 2024-09-08 03:08:41 +02:00
16 lines
375 B
Bash
Executable file
16 lines
375 B
Bash
Executable file
# 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
|
|
|
|
systemctl enable --now mongod
|
|
|
|
python3 -m venv .venv
|
|
source .venv/bin/activate
|
|
pip install -r requirements.txt
|
|
|
|
echo "Installation complete, launch xygt with ./run.py (in the venv)" |