mirror of
				https://github.com/Ysurac/openmptcprouter-feeds.git
				synced 2025-03-09 15:40:03 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			16 lines
		
	
	
	
		
			341 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
	
		
			341 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
#!/bin/sh 
 | 
						|
 | 
						|
uci -q batch <<-EOF >/dev/null
 | 
						|
	delete ucitrack.@haproxy-tcp[-1]
 | 
						|
	add ucitrack haproxy-tcp
 | 
						|
	set ucitrack.@haproxy-tcp[-1].init=haproxy-tcp
 | 
						|
	commit ucitrack
 | 
						|
EOF
 | 
						|
 | 
						|
/etc/init.d/haproxy stop >/dev/null 2>&1
 | 
						|
/etc/init.d/haproxy disable >/dev/null 2>&1
 | 
						|
 | 
						|
/etc/init.d/haproxy-tcp enable >/dev/null 2>&1
 | 
						|
 | 
						|
rm -f /tmp/luci-indexcache
 | 
						|
exit 0
 |