Create install_service.sh

This commit is contained in:
SpudGunMan
2024-06-26 21:34:05 -07:00
parent d51783e824
commit 0405955dce
+20
View File
@@ -0,0 +1,20 @@
#!/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