1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-02-15 03:51:51 +00:00
openmptcprouter-feeds/luci-app-haproxy-tcp/root/etc/uci-defaults/luci-haproxy-tcp
2018-02-20 13:49:33 +01:00

15 lines
266 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
/etc/init.d/haproxy disable
/etc/init.d/haproxy-tcp enable
exit 0