mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-07-14 09:56:59 +08:00
luci-app-unblockmusic: keep ca.crt and server key after upgrade
This commit is contained in:
parent
177c62711a
commit
e6cd7a8dbe
@ -11,7 +11,7 @@ include $(TOPDIR)/rules.mk
|
|||||||
|
|
||||||
PKG_NAME:=luci-app-unblockmusic
|
PKG_NAME:=luci-app-unblockmusic
|
||||||
PKG_VERSION:=2.2.0
|
PKG_VERSION:=2.2.0
|
||||||
PKG_RELEASE:=10
|
PKG_RELEASE:=11
|
||||||
|
|
||||||
PKG_LICENSE:=Apache-2.0
|
PKG_LICENSE:=Apache-2.0
|
||||||
|
|
||||||
|
@ -0,0 +1,3 @@
|
|||||||
|
/usr/share/UnblockNeteaseMusic/ca.crt
|
||||||
|
/usr/share/UnblockNeteaseMusic/server.crt
|
||||||
|
/usr/share/UnblockNeteaseMusic/server.key
|
@ -1,11 +1,11 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
log_max_size="10" #使用KB计算
|
log_max_size="100" #使用KB计算
|
||||||
log_file="/tmp/unblockmusic.log"
|
log_file="/tmp/unblockmusic.log"
|
||||||
|
|
||||||
while true
|
while true
|
||||||
do
|
do
|
||||||
sleep 10s
|
sleep 30s
|
||||||
icount=`busybox ps -w | grep app.js |grep -v grep| wc -l`
|
icount=`busybox ps -w | grep app.js |grep -v grep| wc -l`
|
||||||
if [ $icount -ne 2 ] ;then
|
if [ $icount -ne 2 ] ;then
|
||||||
/etc/init.d/unblockmusic restart
|
/etc/init.d/unblockmusic restart
|
||||||
|
@ -10,7 +10,7 @@ function clean_log(){
|
|||||||
}
|
}
|
||||||
|
|
||||||
function check_latest_version(){
|
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
|
[ -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
|
if [ ! -e "/usr/share/UnblockNeteaseMusic/local_ver" ]; then
|
||||||
clean_log
|
clean_log
|
||||||
|
Loading…
x
Reference in New Issue
Block a user