mirror of
https://github.com/harivansh-afk/betterNAS.git
synced 2026-04-15 09:01:13 +00:00
setup agent runtime requirements (#7)
This commit is contained in:
parent
5d97c33d7e
commit
e75b3f98a6
17 changed files with 424 additions and 28 deletions
19
scripts/integration/verify-webdav
Executable file
19
scripts/integration/verify-webdav
Executable file
|
|
@ -0,0 +1,19 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
# shellcheck disable=SC1091
|
||||
source "$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/../lib/runtime-env.sh"
|
||||
|
||||
headers="$(mktemp)"
|
||||
trap 'rm -f "$headers"' EXIT
|
||||
|
||||
curl -fsS -D "$headers" -o /dev/null -X PROPFIND -H 'Depth: 0' "$BETTERNAS_EXAMPLE_MOUNT_URL"
|
||||
|
||||
if ! grep -Eq '^HTTP/[0-9.]+ 207' "$headers"; then
|
||||
echo "WebDAV PROPFIND did not return 207 for $BETTERNAS_EXAMPLE_MOUNT_URL" >&2
|
||||
cat "$headers" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "WebDAV verified: $BETTERNAS_EXAMPLE_MOUNT_URL"
|
||||
Loading…
Add table
Add a link
Reference in a new issue