From acd8974528ac557e61a63c7588c7b5dfb2863342 Mon Sep 17 00:00:00 2001 From: paukstelis Date: Wed, 15 Mar 2023 23:05:10 -0400 Subject: [PATCH] complete haproxy1.x sed fix --- octoprint_deploy.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/octoprint_deploy.sh b/octoprint_deploy.sh index 8276b21..7b1a55d 100755 --- a/octoprint_deploy.sh +++ b/octoprint_deploy.sh @@ -406,6 +406,8 @@ EXTRACAM="backend cam${INUM}_$INSTANCE\n\ #these are necessary because sed append seems to have issues with escaping for the /\1 sed -i 's/\/|1/\/\\1/' /etc/haproxy/haproxy.cfg sed -i 's/\/|2/\/\\2/' /etc/haproxy/haproxy.cfg + #haproxy 1.x correction + sed -i 's/|/\\/g' /etc/haproxy/haproxy.cfg echo "#cam${INUM}_$INSTANCE stop" >> /etc/haproxy/haproxy.cfg systemctl restart haproxy