From 392d492f499c1c2d9025e7e172fc2849634a72b3 Mon Sep 17 00:00:00 2001 From: SpudGunMan Date: Wed, 10 Jul 2024 19:12:22 -0700 Subject: [PATCH] Update install.sh --- install.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 89f5a16..944b0cb 100755 --- a/install.sh +++ b/install.sh @@ -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