fix camera menu
This commit is contained in:
@@ -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
|
||||||
;;
|
;;
|
||||||
|
|||||||
@@ -1,4 +0,0 @@
|
|||||||
USB testing
|
|
||||||
Serial Number detected: Y849ET71AC8F20
|
|
||||||
Beginning system preparation
|
|
||||||
Do not remove the generic instance!
|
|
||||||
Reference in New Issue
Block a user