aliyundrive-webdav: update to 1.11.0 (#645)

* aliyundrive-webdav: update to 1.11.0 and remove useless commands

* Update aliyundrive-webdav.config

* aliyundrive-webdav: remove aliyunpds support
This commit is contained in:
Saxon 2023-02-19 18:08:58 +08:00 committed by GitHub
parent b4ea154d7c
commit d71e06a984
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 25 additions and 39 deletions

View File

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

View File

@ -12,10 +12,8 @@ config server
option cache_ttl '600'
option root '/'
option no_trash '0'
option domain_id ''
option read_only '0'
option tls_cert ''
option tls_key ''
option skip_upload_same_size '0'
option prefer_http_download '0'
option no_redirect '0'

View File

@ -26,50 +26,38 @@ start_service() {
local host=$(uci_get_by_type server host 127.0.0.1)
local port=$(uci_get_by_type server port 8080)
local root=$(uci_get_by_type server root /)
local domain_id=$(uci_get_by_type server domain_id)
local tls_cert=$(uci_get_by_type server tls_cert)
local tls_key=$(uci_get_by_type server tls_key)
local extra_options="--auto-index"
if [[ ! -z "$domain_id" ]]; then
extra_options="$extra_options --domain-id $domain_id"
else
case "$(uci_get_by_type server no_trash 0)" in
1|on|true|yes|enabled)
extra_options="$extra_options --no-trash"
;;
*) ;;
esac
case "$(uci_get_by_type server no_trash 0)" in
1|on|true|yes|enabled)
extra_options="$extra_options --no-trash"
;;
*) ;;
esac
case "$(uci_get_by_type server read_only 0)" in
1|on|true|yes|enabled)
extra_options="$extra_options --read-only"
;;
*) ;;
esac
case "$(uci_get_by_type server read_only 0)" in
1|on|true|yes|enabled)
extra_options="$extra_options --read-only"
;;
*) ;;
esac
case "$(uci_get_by_type server skip_upload_same_size 0)" in
1|on|true|yes|enabled)
extra_options="$extra_options --skip-upload-same-size"
;;
*) ;;
esac
case "$(uci_get_by_type server skip_upload_same_size 0)" in
1|on|true|yes|enabled)
extra_options="$extra_options --skip-upload-same-size"
;;
*) ;;
esac
case "$(uci_get_by_type server prefer_http_download 0)" in
1|on|true|yes|enabled)
extra_options="$extra_options --prefer-http-download"
;;
*) ;;
esac
case "$(uci_get_by_type server no_redirect 0)" in
1|on|true|yes|enabled)
extra_options="$extra_options --no-redirect"
;;
*) ;;
esac
fi
case "$(uci_get_by_type server prefer_http_download 0)" in
1|on|true|yes|enabled)
extra_options="$extra_options --prefer-http-download"
;;
*) ;;
esac
if [[ ! -z "$tls_cert" && ! -z "$tls_key" ]]; then
extra_options="$extra_options --tls-cert $tls_cert --tls-key $tls_key"