From 12ff91c64fb39072daca4f6a8dd2a75f4bcfea0d Mon Sep 17 00:00:00 2001 From: paukstelis Date: Fri, 21 Oct 2022 12:06:08 -0400 Subject: [PATCH] fix missing quote --- README.md | 1 + octoprint_deploy.sh | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 5ddfae4..29aeb1b 100644 --- a/README.md +++ b/README.md @@ -51,6 +51,7 @@ These files provide a bash script for quickly deploying multiple octoprint insta * Remove instances * Add USB webcams AFTER you've created the instance * Test USB connections + * Write udev rules without deploying instances (udev_rules.sh) * Want to get rid of everything? `sudo octoprint_deploy/octoprint_deploy.sh remove` * Backup and restore files for an instance from the menu, or backup all instances with `sudo octoprint_deploy/octoprint_deploy backup` * Restart all non-template instances from the command line: `sudo octoprint_deploy/octoprint_deploy.sh restart_all` diff --git a/octoprint_deploy.sh b/octoprint_deploy.sh index 09bbee5..55552bd 100755 --- a/octoprint_deploy.sh +++ b/octoprint_deploy.sh @@ -284,7 +284,7 @@ new_instance () { if [ "$HAPROXY" == true ]; then HAversion=$(haproxy -v | sed -n 's/^.*version \([0-9]\).*/\1/p') #find frontend line, do insert - sed -i "/option forwardfor except 127.0.0.1/a\ use_backend $INSTANCE if { path_beg /$INSTANCE/ } /etc/haproxy/haproxy.cfg + sed -i "/option forwardfor except 127.0.0.1/a\ use_backend $INSTANCE if { path_beg /$INSTANCE/ }" /etc/haproxy/haproxy.cfg echo "#$INSTANCE start" >> /etc/haproxy/haproxy.cfg echo "backend $INSTANCE" >> /etc/haproxy/haproxy.cfg if [ $HAversion -gt 1 ]; then