From a43774b33f30f5b4b9e598cf1f8be142e66e61e0 Mon Sep 17 00:00:00 2001 From: SpudGunMan Date: Wed, 25 Sep 2024 22:32:01 -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 e2317c7..c426a52 100755 --- a/install.sh +++ b/install.sh @@ -96,7 +96,10 @@ sed -i $replace etc/pong_bot.service sed -i $replace etc/mesh_bot.service # set the correct user in the service file? whoami=$(whoami) -replace="s|user=pi|user=$whoami|g" +replace="s|User=pi|User=$whoami|g" +sed -i $replace etc/pong_bot.service +sed -i $replace etc/mesh_bot.service +replace="s|Group=pi|Group=$whoami|g" sed -i $replace etc/pong_bot.service sed -i $replace etc/mesh_bot.service printf "\n service files updated\n"