change webdav login to regular login
This commit is contained in:
parent
df51b595f5
commit
56321f84de
1 changed files with 7 additions and 7 deletions
|
|
@ -8,7 +8,7 @@ webdav_folder_url() {
|
|||
webdav_cmd() {
|
||||
complement=$1
|
||||
shift 1
|
||||
curl -f -s --digest --user $remote_user:$ZPASS_REMOTE_PASSWORD "$@" "$(webdav_folder_url)$complement"
|
||||
curl -s --user $remote_user:$ZPASS_REMOTE_PASSWORD "$@" "$(webdav_folder_url)$complement"
|
||||
}
|
||||
|
||||
webdav_list() {
|
||||
|
|
@ -21,6 +21,6 @@ EOF
|
|||
}
|
||||
|
||||
webdav_create() {
|
||||
webdav_cmd "$datapath/" -X MKCOL
|
||||
webdav_cmd "$2" -T "$1"
|
||||
webdav_cmd "$datapath/" -X MKCOL >/dev/null
|
||||
webdav_cmd "$2" -T "$1" >/dev/null
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue