fix camera menu

This commit is contained in:
paukstelis
2022-01-22 18:27:20 -05:00
parent f22f3acc7a
commit af46148779
2 changed files with 4 additions and 8 deletions

View File

@@ -247,10 +247,10 @@ new_instance () {
#if we are on octopi, add in haproxy entry #if we are on octopi, add in haproxy entry
if [ $INSTALL -eq 1 ]; then if [ $INSTALL -eq 1 ]; then
#find frontend line, do insert #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.conf sed -i "/option forwardfor except 127.0.0.1/a\ use_backend $INSTANCE if { path_beg /$INSTANCE/ }" /etc/haproxy/haproxy.cfg
#add backend info, bracket with comments so we can remove later if needed #add backend info, bracket with comments so we can remove later if needed
echo '#octoprint_deploy for port $PORT' >> /etc/haproxy/haproxy.conf echo "#octoprint_deploy for port $PORT" >> /etc/haproxy/haproxy.cfg
echo 'backend $INSTANCE' >> /etc/haproxy/haproxy.conf echo "backend $INSTANCE" >> /etc/haproxy/haproxy.cfg
echo echo
#restart haproxy #restart haproxy
@@ -458,7 +458,7 @@ do
remove_instance remove_instance
break break
;; ;;
"Add camera") "Add Camera")
add_camera add_camera
break break
;; ;;

View File

@@ -1,4 +0,0 @@
USB testing
Serial Number detected: Y849ET71AC8F20
Beginning system preparation
Do not remove the generic instance!