Fix default Nextcloud filesdrop WebDAV URL for backup lane.
Derive NC_WEBDAV_URL from token when unset; document filesdrop vs webdav.
This commit is contained in:
parent
074e7f8441
commit
786d91eeba
1 changed files with 2 additions and 1 deletions
|
|
@ -18,7 +18,8 @@ railiance_backup_load_openbao_lane() {
|
|||
|
||||
railiance_backup_require_openbao_lane() {
|
||||
railiance_backup_load_openbao_lane
|
||||
: "${RAILIANCE_BACKUP_NC_WEBDAV_URL:=https://nx4069.your-storageshare.de/public.php/webdav}"
|
||||
# Nextcloud *file drop* shares use /public.php/dav/filesdrop/<token>/ — not /public.php/webdav
|
||||
: "${RAILIANCE_BACKUP_NC_WEBDAV_URL:=https://nx4069.your-storageshare.de/public.php/dav/filesdrop/${RAILIANCE_BACKUP_NC_TOKEN}}"
|
||||
if [[ -z "${RAILIANCE_BACKUP_NC_TOKEN:-}" ]]; then
|
||||
echo "ERROR: set RAILIANCE_BACKUP_NC_TOKEN or run: bao login -method=oidc -path=netkingdom role=railiance-backup-workload-kv-read" >&2
|
||||
exit 1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue