From f307041ebad7d1cf7d78bed74264cd2fdb7b500d Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 5 Jul 2023 16:26:15 +0800 Subject: [PATCH] update 2023-07-05 16:26:15 --- alist/Makefile | 4 +-- luci-app-alist/Makefile | 2 +- luci-app-alist/root/etc/init.d/alist | 51 +++++++++++++++++++++++++--- 3 files changed, 49 insertions(+), 8 deletions(-) diff --git a/alist/Makefile b/alist/Makefile index 77259251d..f1c3f836d 100644 --- a/alist/Makefile +++ b/alist/Makefile @@ -7,13 +7,13 @@ include $(TOPDIR)/rules.mk PKG_NAME:=alist -PKG_VERSION:=3.20.0 +PKG_VERSION:=3.20.1 PKG_WEB_VERSION:=3.20.0 PKG_RELEASE:=2 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=https://codeload.github.com/alist-org/alist/tar.gz/v$(PKG_VERSION)? -PKG_HASH:=657801b4e785e79f2d6ce861390e7c451caabc17d287a9f5f9a90265400e9f4e +PKG_HASH:=c30e6dfdb0e39615bfcecb17da3a9a643054c6f0eb819d5f45148d2cd0ce2955 PKG_LICENSE:=GPL-3.0 PKG_LICENSE_FILE:=LICENSE diff --git a/luci-app-alist/Makefile b/luci-app-alist/Makefile index 7196c13db..a0fa2f776 100644 --- a/luci-app-alist/Makefile +++ b/luci-app-alist/Makefile @@ -6,7 +6,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=luci-app-alist -PKG_VERSION:=1.0.9 +PKG_VERSION:=1.0.10 PKG_RELEASE:=1 LUCI_TITLE:=LuCI support for alist diff --git a/luci-app-alist/root/etc/init.d/alist b/luci-app-alist/root/etc/init.d/alist index c6de70fb4..b22abc887 100755 --- a/luci-app-alist/root/etc/init.d/alist +++ b/luci-app-alist/root/etc/init.d/alist @@ -58,10 +58,10 @@ set_firewall() { start_service() { config_load alist config_foreach get_config alist - [ $enabled != 1 ] && return 1 + [ $enabled -ne 1 ] && return 1 mkdir -p $temp_dir $data_dir - [ "$ssl" -eq 1 ] && SSL=true || SSL=false - [ "$log" -eq 1 ] && LOG=true || LOG=false + [ "$ssl" -eq 1 ] && https_port=$port http_port="-1" || https_port="-1" http_port=$port + [ "$log" -eq 1 ] && log=true || log=false if [ -e /proc/uptime ]; then [ $(awk -F. '{print $1}' /proc/uptime) -lt "120" ] && delayed_start=$delayed_start || delayed_start=0 else @@ -77,10 +77,50 @@ start_service() { # mysql [ "$mysql" -eq 1 ] && database=mysql || database=sqlite3 set_firewall - cat /dev/null > $temp_dir/alist.log + true > $temp_dir/alist.log cat > $data_dir/config.json <