From 118c422d2027216761d6d55e2fde803280dd504b Mon Sep 17 00:00:00 2001 From: SpudGunMan Date: Thu, 27 Jun 2024 11:16:18 -0700 Subject: [PATCH] Create install_service.sh --- etc/install_service.sh | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 etc/install_service.sh diff --git a/etc/install_service.sh b/etc/install_service.sh new file mode 100644 index 0000000..2edd5eb --- /dev/null +++ b/etc/install_service.sh @@ -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