1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-02-13 11:01:50 +00:00
openmptcprouter-feeds/luci-app-haproxy-tcp/root/etc/uci-defaults/41_luci-haproxy-tcp

17 lines
341 B
Text
Raw Normal View History

2018-02-20 12:49:33 +00:00
#!/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
2018-03-01 19:15:38 +00:00
/etc/init.d/haproxy stop >/dev/null 2>&1
/etc/init.d/haproxy disable >/dev/null 2>&1
2018-02-20 12:49:33 +00:00
2018-03-01 19:15:38 +00:00
/etc/init.d/haproxy-tcp enable >/dev/null 2>&1
2018-02-20 12:49:33 +00:00
2018-02-28 14:07:40 +00:00
rm -f /tmp/luci-indexcache
2018-02-20 12:49:33 +00:00
exit 0