mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-04-19 03:43:29 +00:00
luci-app-frps: fix disable when upgrade
This commit is contained in:
parent
2c37fa71f9
commit
f231323db5
@ -7,7 +7,7 @@ include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=luci-app-frps
|
||||
PKG_VERSION:=0.0.2
|
||||
PKG_RELEASE:=2
|
||||
PKG_RELEASE:=3
|
||||
|
||||
PKG_LICENSE:=MIT
|
||||
PKG_LICENSE_FILES:=LICENSE
|
||||
|
@ -7,19 +7,5 @@ uci -q batch <<-EOF >/dev/null
|
||||
commit ucitrack
|
||||
EOF
|
||||
|
||||
frps=$(uci -q get frps.@frps[-1])
|
||||
|
||||
if [ -z "$frps" ]; then
|
||||
uci -q add frps frps
|
||||
fi
|
||||
|
||||
if [ "x$frps" != "xmain" ]; then
|
||||
uci -q batch <<-EOF >/dev/null
|
||||
rename frps.@frps[-1]="main"
|
||||
set frps.main.enabled="0"
|
||||
commit frps
|
||||
EOF
|
||||
fi
|
||||
|
||||
rm -rf /tmp/luci-indexcache /tmp/luci-modulecache
|
||||
exit 0
|
||||
|
Loading…
Reference in New Issue
Block a user