Fix Nextcloud file-drop WebDAV URL for backup uploads.
Public file-drop shares require /public.php/dav/filesdrop/<token>/; /public.php/webdav/ returns HTTP 409 on PUT.
This commit is contained in:
parent
52a72363f3
commit
d238d5ccc7
2 changed files with 17 additions and 7 deletions
|
|
@ -17,7 +17,7 @@ if [[ -z "${NC_TOKEN}" || -z "${NC_WEBDAV_URL}" ]] && command -v bao >/dev/null
|
|||
NC_WEBDAV_URL="$(bao kv get -field=NC_WEBDAV_URL "${BAO_PATH}")"
|
||||
fi
|
||||
fi
|
||||
: "${NC_WEBDAV_URL:=https://nx4069.your-storageshare.de/public.php/webdav}"
|
||||
: "${NC_WEBDAV_URL:=https://nx4069.your-storageshare.de/public.php/dav/filesdrop/${NC_TOKEN}}"
|
||||
if [[ -z "${NC_TOKEN}" ]]; then
|
||||
bad "credentials" "set RAILIANCE_BACKUP_NC_TOKEN or: bao login -method=oidc -path=netkingdom role=railiance-backup-workload-kv-read"
|
||||
exit 1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue