luci-app-unblockmusic: fix update core in low mem (=<128M) router

This commit is contained in:
coolsnowwolf 2020-02-17 19:58:51 +08:00
parent 72d5c16e51
commit ec9d486741
2 changed files with 2 additions and 3 deletions

View File

@ -8,7 +8,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=luci-app-unblockmusic
PKG_VERSION:=2.3.1
PKG_RELEASE:=10
PKG_RELEASE:=11
PKG_LICENSE:=Apache-2.0

View File

@ -54,7 +54,7 @@ function update_core(){
echo -e "Succeeded in updating core." >/tmp/unblockmusic_update.log
echo -e "Local version: $(cat /usr/share/UnblockNeteaseMusic/local_ver 2>/dev/null), cloud version: ${latest_ver}.\n" >>/tmp/unblockmusic_update.log
node /usr/share/UnblockNeteaseMusic/app.js -v > /usr/share/UnblockNeteaseMusic/core_ver
cat /usr/share/UnblockNeteaseMusic/package-lock.json | grep version |awk -F ':' '{print $2}' | cut -c3-8 > /usr/share/UnblockNeteaseMusic/core_ver
}
function main(){
@ -62,5 +62,4 @@ function main(){
check_latest_version
}
[ "$1" == "luci_update" ] && luci_update="y"
main