diff --git a/multimedia/aliyundrive-webdav/Makefile b/multimedia/aliyundrive-webdav/Makefile index cdc2cfe0..4f6c3ca4 100644 --- a/multimedia/aliyundrive-webdav/Makefile +++ b/multimedia/aliyundrive-webdav/Makefile @@ -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 diff --git a/multimedia/aliyundrive-webdav/files/aliyundrive-webdav.config b/multimedia/aliyundrive-webdav/files/aliyundrive-webdav.config index 76f21d94..c1626dbc 100644 --- a/multimedia/aliyundrive-webdav/files/aliyundrive-webdav.config +++ b/multimedia/aliyundrive-webdav/files/aliyundrive-webdav.config @@ -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' diff --git a/multimedia/aliyundrive-webdav/files/aliyundrive-webdav.init b/multimedia/aliyundrive-webdav/files/aliyundrive-webdav.init index 69fa5b2f..65b3a67a 100755 --- a/multimedia/aliyundrive-webdav/files/aliyundrive-webdav.init +++ b/multimedia/aliyundrive-webdav/files/aliyundrive-webdav.init @@ -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"