update 2023-08-10 23:35:53

This commit is contained in:
github-actions[bot] 2023-08-10 23:35:53 +08:00
parent 15f0af4c2e
commit 7bb704307b
8 changed files with 22 additions and 4 deletions

View File

@ -1,7 +1,7 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=aliyundrive-webdav
PKG_VERSION:=2.3.0
PKG_VERSION:=2.3.1
PKG_RELEASE:=1
PKG_LICENSE:=MIT

View File

@ -4,6 +4,7 @@ config server
option refresh_token ''
option host '0.0.0.0'
option port '8080'
option drive_type ''
option auth_user ''
option auth_password ''
option read_buffer_size '10485760'

View File

@ -28,6 +28,7 @@ start_service() {
local root=$(uci_get_by_type server root /)
local tls_cert=$(uci_get_by_type server tls_cert)
local tls_key=$(uci_get_by_type server tls_key)
local drive_type=$(uci_get_by_type server drive_type)
local extra_options="--auto-index"
@ -70,6 +71,10 @@ start_service() {
extra_options="$extra_options --tls-cert $tls_cert --tls-key $tls_key"
fi
if [[ ! -z "$drive_type" ]]; then
extra_options="$extra_options --drive-type $drive_type"
fi
procd_open_instance
procd_set_param command /bin/sh -c "/usr/bin/$NAME $extra_options --host $host --port $port --root $root --read-buffer-size $read_buf_size --upload-buffer-size $upload_buf_size --cache-size $cache_size --cache-ttl $cache_ttl --workdir /var/run/$NAME >>/var/log/$NAME.log 2>&1"
procd_set_param pidfile /var/run/$NAME.pid

View File

@ -1,7 +1,7 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=luci-app-aliyundrive-webdav
PKG_VERSION:=2.3.0
PKG_VERSION:=2.3.1
PKG_RELEASE:=1
PKG_PO_VERSION:=$(PKG_VERSION)-$(PKG_RELEASE)

View File

@ -29,6 +29,12 @@ port = e:option(Value, "port", translate("Port"))
port.default = "8080"
port.datatype = "port"
drive_type = e:option(ListValue, "drive_type", translate("Aliyun drive type"))
drive_type.description = translate("Supports drive type: resource, backup")
drive_type:value("resource", "resource");
drive_type:value("backup", "backup");
drive_type.default = "backup"
tls_cert = e:option(Value, "tls_cert", translate("TLS certificate file path"))
tls_key = e:option(Value, "tls_key", translate("TLS private key file path"))

View File

@ -22,6 +22,12 @@ msgstr "监听主机"
msgid "Port"
msgstr "监听端口"
msgid "Aliyun drive type"
msgstr "云盘驱动类型"
msgid "Supports drive type: resource, backup"
msgstr "支持驱动器类型resource, backup"
msgid "TLS certificate file path"
msgstr "TLS 证书文件路径"

View File

@ -16,7 +16,7 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=luci-app-amlogic
PKG_VERSION:=3.1.196
PKG_VERSION:=3.1.197
PKG_RELEASE:=1
PKG_LICENSE:=GPL-2.0 License

View File

@ -183,7 +183,7 @@ download_kernel() {
wget "${kernel_down_from}" -q -P "${KERNEL_DOWNLOAD_PATH}"
[[ "${?}" -ne "0" ]] && tolog "03.03 The kernel download failed." "1"
tar -xzf ${KERNEL_DOWNLOAD_PATH}/${download_version}.tar.gz -C ${KERNEL_DOWNLOAD_PATH}
tar -xf ${KERNEL_DOWNLOAD_PATH}/${download_version}.tar.gz -C ${KERNEL_DOWNLOAD_PATH}
[[ "${?}" -ne "0" ]] && tolog "03.04 Kernel decompression failed." "1"
mv -f ${KERNEL_DOWNLOAD_PATH}/${download_version}/* ${KERNEL_DOWNLOAD_PATH}/