From 81e91ab6c5470fd09399e582481250aab3e91e80 Mon Sep 17 00:00:00 2001 From: SpudGunMan Date: Sat, 4 Jan 2025 12:53:50 -0800 Subject: [PATCH] Update install.sh --- install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index f019712..bcb515c 100755 --- a/install.sh +++ b/install.sh @@ -251,7 +251,7 @@ if [[ $(echo "${embedded}" | grep -i "^n") ]]; then fi fi - if [[ $(echo "${meshbotservice}" | grep -i "^y") ]]; then + if [[ $(echo "${embedded}" | grep -i "^n") ]]; then # document the service install printf "To install the %s service and keep notes, copy and paste the following commands:\n\n" "$service" printf "sudo cp %s/etc/%s.service /etc/systemd/system/etc/%s.service\n" "$program_path" "$service" "$service" > install_notes.txt @@ -259,7 +259,7 @@ if [[ $(echo "${embedded}" | grep -i "^n") ]]; then printf "sudo systemctl enable %s.service\n" "$service" >> install_notes.txt printf "sudo systemctl start %s.service\n" "$service" >> install_notes.txt printf "sudo systemctl status %s.service\n\n" "$service" >> install_notes.txt - printf "To see logs and stop the service:\n" >> install_notes.txt + printf "To see logs and stop the service:\n" printf "sudo journalctl -u %s.service\n" "$service" >> install_notes.txt printf "sudo systemctl stop %s.service\n" "$service" >> install_notes.txt printf "sudo systemctl disable %s.service\n" "$service" >> install_notes.txt