Skip to content

Commit

Permalink
luci-app-unblockmusic: keep ca.crt and server key after upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
coolsnowwolf committed Dec 8, 2019
1 parent 177c627 commit e6cd7a8
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package/lean/luci-app-unblockmusic/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ include $(TOPDIR)/rules.mk

PKG_NAME:=luci-app-unblockmusic
PKG_VERSION:=2.2.0
PKG_RELEASE:=10
PKG_RELEASE:=11

PKG_LICENSE:=Apache-2.0

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/usr/share/UnblockNeteaseMusic/ca.crt
/usr/share/UnblockNeteaseMusic/server.crt
/usr/share/UnblockNeteaseMusic/server.key
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#!/bin/bash

log_max_size="10" #使用KB计算
log_max_size="100" #使用KB计算
log_file="/tmp/unblockmusic.log"

while true
do
sleep 10s
sleep 30s
icount=`busybox ps -w | grep app.js |grep -v grep| wc -l`
if [ $icount -ne 2 ] ;then
/etc/init.d/unblockmusic restart
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ function clean_log(){
}

function check_latest_version(){
latest_ver="$(wget -O- https://github.com/nondanee/UnblockNeteaseMusic/commits/master |tr -d '\n' |grep -Eo 'commit\/[0-9a-z]+' |sed -n 1p |sed 's#commit/##g')"
latest_ver="$(wget-ssl --no-check-certificate -O- https://github.com/nondanee/UnblockNeteaseMusic/commits/master |tr -d '\n' |grep -Eo 'commit\/[0-9a-z]+' |sed -n 1p |sed 's#commit/##g')"
[ -z "${latest_ver}" ] && echo -e "\nFailed to check latest version, please try again later." >>/tmp/unblockmusic_update.log && exit 1
if [ ! -e "/usr/share/UnblockNeteaseMusic/local_ver" ]; then
clean_log
Expand Down

0 comments on commit e6cd7a8

Please sign in to comment.