From 4a3e50ffc7be85b3e2c879e31c41565bb5f84988 Mon Sep 17 00:00:00 2001 From: paukstelis Date: Fri, 27 May 2022 14:48:33 -0400 Subject: [PATCH] settings --- octoprint_deploy.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/octoprint_deploy.sh b/octoprint_deploy.sh index fb45d41..cc51569 100755 --- a/octoprint_deploy.sh +++ b/octoprint_deploy.sh @@ -13,11 +13,11 @@ ARCH=${ARCH:0:3} get_settings() { #Get octoprint_deploy settings, all of which are written on system prepare if [ -f /etc/octoprint_deploy ]; then - TYPE=$(cat /etc/octoprint_deploy | sed -n -e 's/^type: \([[:alnum:]]*\) .*/\1/p') + TYPE=$(cat /etc/octoprint_deploy | sed -n -e 's/^type: \(\.*\)/\1/p') echo $TYPE - STREAMER=$(cat /etc/octoprint_deploy | sed -n -e 's/^streamer: \([[:alnum:]]*\) .*/\1/p') + STREAMER=$(cat /etc/octoprint_deploy | sed -n -e 's/^streamer: \(\.*\)/\1/p') echo $STREAMER - HAPROXY=$(cat /etc/octoprint_deploy | sed -n -e 's/^haproxy: \([[:alnum:]]*\) .*/\1/p') + HAPROXY=$(cat /etc/octoprint_deploy | sed -n -e 's/^haproxy: \(\.*\)/\1/p') echo $HAPROXY fi }