Update install.sh

This commit is contained in:
SpudGunMan
2024-09-25 22:32:01 -07:00
parent 8369b4d205
commit a43774b33f
+4 -1
View File
@@ -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"