From fbeb7be9f77dbd172a8df84bec55ced8142cc52f Mon Sep 17 00:00:00 2001 From: paukstelis Date: Tue, 21 Feb 2023 16:29:30 -0500 Subject: [PATCH] haproxy fixes --- octoprint_deploy.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/octoprint_deploy.sh b/octoprint_deploy.sh index 2bb7923..9611298 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${INUM}_$INSTANCE start|a $EXTRACAM" /etc/haproxy/haproxy.cfg if [ -z "$INUM" ]; then echo "#cam_$INSTANCE stop" >> /etc/haproxy/haproxy.cfg fi