mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-02-13 11:01:50 +00:00
15 lines
321 B
Bash
15 lines
321 B
Bash
#!/bin/sh
|
|
|
|
uci -q batch <<-EOF >/dev/null
|
|
delete ucitrack.@nginx-ha[-1]
|
|
add ucitrack nginx-ha
|
|
set ucitrack.@nginx-ha[-1].init=nginx-ha
|
|
commit ucitrack
|
|
EOF
|
|
|
|
/etc/init.d/nginx stop >/dev/null 2>&1
|
|
/etc/init.d/nginx disable >/dev/null 2>&1
|
|
/etc/init.d/nginx-ha enable >/dev/null 2>&1
|
|
|
|
rm -f /tmp/luci-indexcache
|
|
exit 0
|