From b21e4b46905d79c689933bd0b6f42390d55ce1b7 Mon Sep 17 00:00:00 2001 From: paukstelis Date: Sun, 19 Feb 2023 08:55:13 -0500 Subject: [PATCH] change sed delimiter for cameras --- octoprint_deploy.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/octoprint_deploy.sh b/octoprint_deploy.sh index 7c34e38..2bb7923 100755 --- a/octoprint_deploy.sh +++ b/octoprint_deploy.sh @@ -404,7 +404,7 @@ EXTRACAM="backend cam${INUM}_$INSTANCE\n\ if [ -z "$INUM" ]; then echo "#cam_$INSTANCE start" >> /etc/haproxy/haproxy.cfg fi - sed -i "/#cam_$INSTANCE start/a $EXTRACAM" /etc/haproxy/haproxy.cfg + sed -i "/|#cam_$INSTANCE start|a $EXTRACAM" /etc/haproxy/haproxy.cfg if [ -z "$INUM" ]; then echo "#cam_$INSTANCE stop" >> /etc/haproxy/haproxy.cfg fi