Update install.sh

This commit is contained in:
SpudGunMan
2024-07-10 19:12:22 -07:00
parent 5e527a13cb
commit 392d492f49
+4 -1
View File
@@ -8,6 +8,9 @@ cd "$(dirname "$0")"
sudo usermod -a -G dialout $USER
sudo usermod -a -G tty $USER
# generate config file
cp config.template config.ini
# set virtual environment and install dependencies
printf "\n\nmeshing arpund installer\n"
echo "Do you want to install the bot in a virtual environment? (y/n)"
@@ -43,7 +46,7 @@ read bot
program_path=$(pwd)
cp etc/pong_bot.tmp etc/pong_bot.service
cp etc/mesh_bot.tmp etc/mesh_bot.service
replace="s|/dir/launch.sh|$program_path/launch.sh|g"
replace="s|/dir/|$program_path/|g"
sed -i $replace etc/pong_bot.service
sed -i $replace etc/mesh_bot.service