Files
meshing-around/install_service.sh
T
2024-06-26 21:34:05 -07:00

21 lines
469 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