fix missing quote

This commit is contained in:
paukstelis
2022-10-21 12:06:08 -04:00
parent ebaf739ab8
commit 12ff91c64f
2 changed files with 2 additions and 1 deletions

View File

@@ -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`

View File

@@ -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