mirror of
https://github.com/coolsnowwolf/packages.git
synced 2025-05-02 03:31:52 +08:00
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:
parent
b4ea154d7c
commit
d71e06a984
@ -1,7 +1,7 @@
|
|||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=aliyundrive-webdav
|
PKG_NAME:=aliyundrive-webdav
|
||||||
PKG_VERSION:=1.10.6
|
PKG_VERSION:=1.11.0
|
||||||
PKG_RELEASE:=$(AUTORELEASE)
|
PKG_RELEASE:=$(AUTORELEASE)
|
||||||
|
|
||||||
PKG_LICENSE:=MIT
|
PKG_LICENSE:=MIT
|
||||||
|
@ -12,10 +12,8 @@ config server
|
|||||||
option cache_ttl '600'
|
option cache_ttl '600'
|
||||||
option root '/'
|
option root '/'
|
||||||
option no_trash '0'
|
option no_trash '0'
|
||||||
option domain_id ''
|
|
||||||
option read_only '0'
|
option read_only '0'
|
||||||
option tls_cert ''
|
option tls_cert ''
|
||||||
option tls_key ''
|
option tls_key ''
|
||||||
option skip_upload_same_size '0'
|
option skip_upload_same_size '0'
|
||||||
option prefer_http_download '0'
|
option prefer_http_download '0'
|
||||||
option no_redirect '0'
|
|
||||||
|
@ -26,50 +26,38 @@ start_service() {
|
|||||||
local host=$(uci_get_by_type server host 127.0.0.1)
|
local host=$(uci_get_by_type server host 127.0.0.1)
|
||||||
local port=$(uci_get_by_type server port 8080)
|
local port=$(uci_get_by_type server port 8080)
|
||||||
local root=$(uci_get_by_type server root /)
|
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_cert=$(uci_get_by_type server tls_cert)
|
||||||
local tls_key=$(uci_get_by_type server tls_key)
|
local tls_key=$(uci_get_by_type server tls_key)
|
||||||
|
|
||||||
local extra_options="--auto-index"
|
local extra_options="--auto-index"
|
||||||
|
|
||||||
if [[ ! -z "$domain_id" ]]; then
|
case "$(uci_get_by_type server no_trash 0)" in
|
||||||
extra_options="$extra_options --domain-id $domain_id"
|
1|on|true|yes|enabled)
|
||||||
else
|
extra_options="$extra_options --no-trash"
|
||||||
case "$(uci_get_by_type server no_trash 0)" in
|
;;
|
||||||
1|on|true|yes|enabled)
|
*) ;;
|
||||||
extra_options="$extra_options --no-trash"
|
esac
|
||||||
;;
|
|
||||||
*) ;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
case "$(uci_get_by_type server read_only 0)" in
|
case "$(uci_get_by_type server read_only 0)" in
|
||||||
1|on|true|yes|enabled)
|
1|on|true|yes|enabled)
|
||||||
extra_options="$extra_options --read-only"
|
extra_options="$extra_options --read-only"
|
||||||
;;
|
;;
|
||||||
*) ;;
|
*) ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
case "$(uci_get_by_type server skip_upload_same_size 0)" in
|
case "$(uci_get_by_type server skip_upload_same_size 0)" in
|
||||||
1|on|true|yes|enabled)
|
1|on|true|yes|enabled)
|
||||||
extra_options="$extra_options --skip-upload-same-size"
|
extra_options="$extra_options --skip-upload-same-size"
|
||||||
;;
|
;;
|
||||||
*) ;;
|
*) ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
case "$(uci_get_by_type server prefer_http_download 0)" in
|
case "$(uci_get_by_type server prefer_http_download 0)" in
|
||||||
1|on|true|yes|enabled)
|
1|on|true|yes|enabled)
|
||||||
extra_options="$extra_options --prefer-http-download"
|
extra_options="$extra_options --prefer-http-download"
|
||||||
;;
|
;;
|
||||||
*) ;;
|
*) ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
case "$(uci_get_by_type server no_redirect 0)" in
|
|
||||||
1|on|true|yes|enabled)
|
|
||||||
extra_options="$extra_options --no-redirect"
|
|
||||||
;;
|
|
||||||
*) ;;
|
|
||||||
esac
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [[ ! -z "$tls_cert" && ! -z "$tls_key" ]]; then
|
if [[ ! -z "$tls_cert" && ! -z "$tls_key" ]]; then
|
||||||
extra_options="$extra_options --tls-cert $tls_cert --tls-key $tls_key"
|
extra_options="$extra_options --tls-cert $tls_cert --tls-key $tls_key"
|
||||||
|
Loading…
Reference in New Issue
Block a user