From 46cb0fbb33a6e470e493d2e2d04649cabb05d8b1 Mon Sep 17 00:00:00 2001 From: paukstelis Date: Fri, 28 Oct 2022 08:54:16 -0400 Subject: [PATCH] modify status output, readme --- README.md | 2 +- octoprint_deploy.sh | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 0321aee..73fe9a4 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ Updated October 24, 2022. Want to support this work? Buy Me a Coffee. https://www.buymeacoffee.com/ppaukstelis. Need help with octoprint_deploy? Ask on Discord: https://discord.gg/6vgSjgvR6u # octoprint_deploy -These files provide a bash script for quickly deploying multiple octoprint instances on a single computer. For Linux systems (Ubuntu, Fedora, etc.) it will also install OctoPrint and a video streamer (mjpg-streamer or ustreamer). No need for lots of file editing or complicated Docker compose scripts! +These files provide a bash script for quickly deploying multiple octoprint instances on a single computer. For Linux systems (Ubuntu, Fedora, etc.) it will also install OctoPrint and a video streamer (mjpg-streamer or ustreamer). No need for lots of file editing or complicated Docker compose scripts! A background video on how it works from my ERRF2022 talk can be found here: https://www.youtube.com/watch?v=q0iCNl8-kJI&t=15378s # How to use * OctoPi diff --git a/octoprint_deploy.sh b/octoprint_deploy.sh index 779f26a..907a5b1 100755 --- a/octoprint_deploy.sh +++ b/octoprint_deploy.sh @@ -1138,10 +1138,11 @@ instance_status() { echo "*******************************************" readarray -t instances < <(cat /etc/octoprint_instances | sed -n -e 's/^instance:\([[:graph:]]*\) .*/\1/p') unset 'instances[0]' - echo "Instance: Status:" + echo "Instance - Status:" + echo "------------------" for instance in "${instances[@]}"; do status=$(systemctl status $instance | sed -n -e 's/Active: \([[:graph:]]*\) .*/\1/p') - echo "$instance $status" + echo "$instance - $status" done echo "*******************************************" main_menu