mirror of
https://github.com/SpudGunMan/meshing-around.git
synced 2026-07-06 01:41:45 +02:00
22 lines
535 B
Bash
22 lines
535 B
Bash
#!/bin/bash
|
|
# set virtual environment and install dependencies
|
|
#python -m venv venv
|
|
#source venv/bin/activate
|
|
pip install -r requirements.txt
|
|
|
|
echo "Which bot do you want to install? (pong/mesh)"
|
|
read bot
|
|
|
|
if [ $bot == "pong" ]; then
|
|
# install service for pong bot
|
|
sudo cp etc/pong_bot.service /etc/systemd/system/
|
|
exit 0
|
|
fi
|
|
|
|
if [ $bot == "mesh" ]; then
|
|
# install service for mesh bot
|
|
sudo cp etc/mesh_bot.service /etc/systemd/system/
|
|
exit 0
|
|
fi
|
|
|
|
# reminder to change the .service file to proper path for the bot |