Updated onboarding script

This commit is contained in:
Ben D.
2026-04-23 14:42:15 -07:00
parent 210a59b3d1
commit 6828b364e1

View File

@@ -195,12 +195,12 @@ semaphore_api() {
local PATH="$2"
local DATA="${3:-}"
if [[ -n "$DATA" ]]; then
curl -s -X "$METHOD" "$SEMAPHORE_URL/api$PATH" \
/usr/bin/curl -s -X "$METHOD" "$SEMAPHORE_URL/api$PATH" \
-H "Authorization: Bearer $SEMAPHORE_TOKEN" \
-H "Content-Type: application/json" \
-d "$DATA"
else
curl -s -X "$METHOD" "$SEMAPHORE_URL/api$PATH" \
/usr/bin/curl -s -X "$METHOD" "$SEMAPHORE_URL/api$PATH" \
-H "Authorization: Bearer $SEMAPHORE_TOKEN"
fi
}