haproxy fixes

This commit is contained in:
paukstelis
2023-02-21 16:29:30 -05:00
parent b21e4b4690
commit fbeb7be9f7

View File

@@ -404,7 +404,7 @@ EXTRACAM="backend cam${INUM}_$INSTANCE\n\
if [ -z "$INUM" ]; then
echo "#cam_$INSTANCE start" >> /etc/haproxy/haproxy.cfg
fi
sed -i "/|#cam_$INSTANCE start|a $EXTRACAM" /etc/haproxy/haproxy.cfg
sed -i "\|#cam${INUM}_$INSTANCE start|a $EXTRACAM" /etc/haproxy/haproxy.cfg
if [ -z "$INUM" ]; then
echo "#cam_$INSTANCE stop" >> /etc/haproxy/haproxy.cfg
fi