From bdf38c9c348698a7e464cc311524999114f0c975 Mon Sep 17 00:00:00 2001 From: paukstelis Date: Fri, 21 Oct 2022 09:34:28 -0400 Subject: [PATCH] udev_rules script --- octoprint_deploy.sh | 2 +- printer_udev.sh => udev_rules.sh | 0 2 files changed, 1 insertion(+), 1 deletion(-) rename printer_udev.sh => udev_rules.sh (100%) diff --git a/octoprint_deploy.sh b/octoprint_deploy.sh index 55552bd..09bbee5 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 diff --git a/printer_udev.sh b/udev_rules.sh similarity index 100% rename from printer_udev.sh rename to udev_rules.sh