Updated onboarding script
This commit is contained in:
@@ -195,12 +195,12 @@ semaphore_api() {
|
|||||||
local PATH="$2"
|
local PATH="$2"
|
||||||
local DATA="${3:-}"
|
local DATA="${3:-}"
|
||||||
if [[ -n "$DATA" ]]; then
|
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 "Authorization: Bearer $SEMAPHORE_TOKEN" \
|
||||||
-H "Content-Type: application/json" \
|
-H "Content-Type: application/json" \
|
||||||
-d "$DATA"
|
-d "$DATA"
|
||||||
else
|
else
|
||||||
curl -s -X "$METHOD" "$SEMAPHORE_URL/api$PATH" \
|
/usr/bin/curl -s -X "$METHOD" "$SEMAPHORE_URL/api$PATH" \
|
||||||
-H "Authorization: Bearer $SEMAPHORE_TOKEN"
|
-H "Authorization: Bearer $SEMAPHORE_TOKEN"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user