mirror of
https://github.com/SpudGunMan/meshing-around.git
synced 2026-07-06 18:01:18 +02:00
installerChange
This commit is contained in:
@@ -35,6 +35,13 @@ read bot
|
||||
|
||||
# reminder to change the .service file to proper path for the bot
|
||||
|
||||
#set the correct path in the service file
|
||||
program_path="$(dirname "$0")"
|
||||
cp etc/pong_bot.service.tmp etc/pong_bot.service
|
||||
cp etc/mesh_bot.service.tmp etc/mesh_bot.service
|
||||
sed -i "s|/dir/launch.sh|$program_path/launch.sh|g" etc/pong_bot.service
|
||||
sed -i "s|/dir/launch.sh|$program_path/launch.sh|g" etc/mesh_bot.service
|
||||
|
||||
if [ $bot == "pong" ]; then
|
||||
# install service for pong bot
|
||||
sudo cp etc/pong_bot.service /etc/systemd/system/
|
||||
|
||||
Reference in New Issue
Block a user