Updated onboarding script
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user